cv::Stitcher Class ReferenceImages stitching
High level image stitcher. More...
#include <opencv2/stitching.hpp>
Public Types | |
| enum | |
High level image stitcher. More...
#include <opencv2/stitching.hpp>
Public Types | |
| enum | |
| Mode { PANORAMA = 0 , SCANS = 1 } |
| enum | Status { OK = 0 , ERR_NEED_MORE_IMGS = 1 , ERR_HOMOGRAPHY_EST_FAIL = 2 , ERR_CAMERA_PARAMS_ADJUST_FAIL = 3 } |
Static Public Attributes | |
| static const double | ORIG_RESOL |
High level image stitcher.
It's possible to use this class without being aware of the entire stitching pipeline. However, to be able to achieve higher stitching stability and quality of the final images at least being familiar with the theory is recommended.
| enum cv::Stitcher::Mode |
| Enumerator | |
|---|---|
| PANORAMA | Mode for creating photo panoramas. Expects images under perspective transformation and projects resulting pano to sphere. |
| SCANS | Mode for composing scans. Expects images under affine transformation does not compensate exposure by default. |
| enum cv::Stitcher::Status |
| Enumerator | |
|---|---|
| OK | |
| ERR_NEED_MORE_IMGS | |
| ERR_HOMOGRAPHY_EST_FAIL | |
| ERR_CAMERA_PARAMS_ADJUST_FAIL | |
| inline |
| inline |
| inline |
| inline |
| inline |
| Python: | ||||
|---|---|---|---|---|
| cv.Stitcher.cameras( | ) -> | retval |
Returns estimated camera parameters for all stitched images
| inline |
| Python: | ||||
|---|---|---|---|---|
| cv.Stitcher.component( | ) -> | retval |
Returns indeces of input images used in panorama stitching.
| Status cv::Stitcher::composePanorama | ( | InputArrayOfArrays | images, |
| OutputArray | pano ) |
| Python: | ||||
|---|---|---|---|---|
| cv.Stitcher.composePanorama( | [, pano] | ) -> | retval, pano | |
| cv.Stitcher.composePanorama( | images[, pano] | ) -> | retval, pano |
These functions try to compose the given images (or images stored internally from the other function calls) into the final pano under the assumption that the image transformations were estimated before.
| images | Input images. |
| pano | Final pano. |
| Status cv::Stitcher::composePanorama | ( | OutputArray | pano | ) |
| Python: | ||||
|---|---|---|---|---|
| cv.Stitcher.composePanorama( | [, pano] | ) -> | retval, pano | |
| cv.Stitcher.composePanorama( | images[, pano] | ) -> | retval, pano |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| inline |
| Python: | ||||
|---|---|---|---|---|
| cv.Stitcher.compositingResol( | ) -> | retval |
| static |
| Python: | ||||
|---|---|---|---|---|
| cv.Stitcher.create( | [, mode] | ) -> | retval | |
| cv.Stitcher_create( | [, mode] | ) -> | retval |
| Status cv::Stitcher::estimateTransform | ( | InputArrayOfArrays | images, |
| InputArrayOfArrays | masks = noArray() ) |
| Python: | ||||
|---|---|---|---|---|
| cv.Stitcher.estimateTransform( | images[, masks] | ) -> | retval |
These functions try to match the given images and to estimate rotations of each camera.
| images | Input images. |
| masks | Masks for each input image specifying where to look for keypoints (optional). |
| inline |
| inline |
| inline |
| inline |
| inline |
| inline |
| inline |
| Python: | ||||
|---|---|---|---|---|
| cv.Stitcher.interpolationFlags( | ) -> | retval |
| inline |
| inline |
| Python: | ||||
|---|---|---|---|---|
| cv.Stitcher.panoConfidenceThresh( | ) -> | retval |
| inline |
| Python: | ||||
|---|---|---|---|---|
| cv.Stitcher.registrationResol( | ) -> | retval |
| inline |
| Python: | ||||
|---|---|---|---|---|
| cv.Stitcher.seamEstimationResol( | ) -> | retval |
| inline |
| inline |
| inline |
| inline |
| inline |
| Python: | ||||
|---|---|---|---|---|
| cv.Stitcher.setCompositingResol( | resol_mpx | ) -> | None |
| inline |
| inline |
| inline |
| inline |
| Python: | ||||
|---|---|---|---|---|
| cv.Stitcher.setInterpolationFlags( | interp_flags | ) -> | None |
| inline |
| inline |
| Python: | ||||
|---|---|---|---|---|
| cv.Stitcher.setPanoConfidenceThresh( | conf_thresh | ) -> | None |
| inline |
| Python: | ||||
|---|---|---|---|---|
| cv.Stitcher.setRegistrationResol( | resol_mpx | ) -> | None |
| inline |
| Python: | ||||
|---|---|---|---|---|
| cv.Stitcher.setSeamEstimationResol( | resol_mpx | ) -> | None |
| inline |
| Status cv::Stitcher::setTransform | ( | InputArrayOfArrays | images, |
| const std::vector< detail::CameraParams > & | cameras ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| Status cv::Stitcher::setTransform | ( | InputArrayOfArrays | images, |
| const std::vector< detail::CameraParams > & | cameras, | ||
| const std::vector< int > & | component ) |
These function restors camera rotation and camera intrinsics of each camera that can be got with Stitcher::cameras call.
| images | Input images. |
| cameras | Estimated rotation of cameras for each of the input images. |
| component | Indices (0-based) of images constituting the final panorama (optional). |
| inline |
| inline |
| Python: | ||||
|---|---|---|---|---|
| cv.Stitcher.setWaveCorrection( | flag | ) -> | None |
| inline |
| Status cv::Stitcher::stitch | ( | InputArrayOfArrays | images, |
| InputArrayOfArrays | masks, | ||
| OutputArray | pano ) |
| Python: | ||||
|---|---|---|---|---|
| cv.Stitcher.stitch( | images[, pano] | ) -> | retval, pano | |
| cv.Stitcher.stitch( | images, masks[, pano] | ) -> | retval, pano |
These functions try to stitch the given images.
| images | Input images. |
| masks | Masks for each input image specifying where to look for keypoints (optional). |
| pano | Final pano. |
| Status cv::Stitcher::stitch | ( | InputArrayOfArrays | images, |
| OutputArray | pano ) |
| Python: | ||||
|---|---|---|---|---|
| cv.Stitcher.stitch( | images[, pano] | ) -> | retval, pano | |
| cv.Stitcher.stitch( | images, masks[, pano] | ) -> | retval, pano |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| inline |
| inline |
| inline |
| Python: | ||||
|---|---|---|---|---|
| cv.Stitcher.waveCorrection( | ) -> | retval |
| inline |
| inline |
| Python: | ||||
|---|---|---|---|---|
| cv.Stitcher.workScale( | ) -> | retval |
| static |
When setting a resolution for stitching, this values is a placeholder for preserving the original resolution.