Merge pull request #26516 from asmorkalov:as/pano_component_wrap

Document some stitching methods and enable bindings for them.
This commit is contained in:
Alexander Smorkalov 2024-11-28 08:19:55 +03:00 committed by GitHub
commit a27d749471
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -299,8 +299,13 @@ public:
*/
CV_WRAP Status stitch(InputArrayOfArrays images, InputArrayOfArrays masks, OutputArray pano);
std::vector<int> component() const { return indices_; }
std::vector<detail::CameraParams> cameras() const { return cameras_; }
/** @brief Returns indeces of input images used in panorama stitching
*/
CV_WRAP std::vector<int> component() const { return indices_; }
/** Returns estimated camera parameters for all stitched images
*/
CV_WRAP std::vector<cv::detail::CameraParams> cameras() const { return cameras_; }
CV_WRAP double workScale() const { return work_scale_; }
/** @brief Return the mask of the panorama.