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 Member Functions | |
static Ptr< Stitcher > | create (Mode mode=Stitcher::PANORAMA) |
Creates a Stitcher configured in one of the stitching modes. | |
Static Public Attributes | |
static const double | ORIG_RESOL |
Detailed Description
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.
- Note
- A basic example on image stitching can be found at opencv_source_code/samples/cpp/stitching.cpp
- A basic example on image stitching in Python can be found at opencv_source_code/samples/python/stitching.py
- A detailed example on image stitching can be found at opencv_source_code/samples/cpp/stitching_detailed.cpp
Member Enumeration Documentation
◆ Mode
enum cv::Stitcher::Mode |
◆ Status
enum cv::Stitcher::Status |
Member Function Documentation
◆ blender() [1/2]
|
inline |
◆ blender() [2/2]
|
inline |
◆ bundleAdjuster() [1/2]
|
inline |
◆ bundleAdjuster() [2/2]
|
inline |
◆ cameras()
|
inline |
◆ component()
|
inline |
◆ composePanorama() [1/2]
Status cv::Stitcher::composePanorama | ( | InputArrayOfArrays | images, |
OutputArray | 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.
- Note
- Use the functions only if you're aware of the stitching pipeline, otherwise use Stitcher::stitch.
- Parameters
-
images Input images. pano Final pano.
- Returns
- Status code.
◆ composePanorama() [2/2]
Status cv::Stitcher::composePanorama | ( | OutputArray | pano | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
◆ compositingResol()
|
inline |
◆ create()
|
static |
◆ estimateTransform()
Status cv::Stitcher::estimateTransform | ( | InputArrayOfArrays | images, |
InputArrayOfArrays | masks = noArray() |
||
) |
These functions try to match the given images and to estimate rotations of each camera.
- Note
- Use the functions only if you're aware of the stitching pipeline, otherwise use Stitcher::stitch.
- Parameters
-
images Input images. masks Masks for each input image specifying where to look for keypoints (optional).
- Returns
- Status code.
◆ estimator() [1/2]
|
inline |
◆ estimator() [2/2]
|
inline |
◆ exposureCompensator() [1/2]
|
inline |
◆ exposureCompensator() [2/2]
|
inline |
◆ featuresFinder() [1/2]
◆ featuresFinder() [2/2]
◆ featuresMatcher() [1/2]
|
inline |
◆ featuresMatcher() [2/2]
|
inline |
◆ interpolationFlags()
|
inline |
◆ matchingMask()
|
inline |
◆ panoConfidenceThresh()
|
inline |
◆ registrationResol()
|
inline |
◆ resultMask()
|
inline |
Return the mask of the panorama.
The mask is a 8U UMat with the values: 0xFF (white) for pixels filled by the input images, 0 (black) for unused pixels. It can be used as the mask for inpaint.
- Returns
- The mask.
◆ seamEstimationResol()
|
inline |
◆ seamFinder() [1/2]
|
inline |
◆ seamFinder() [2/2]
|
inline |
◆ setBlender()
|
inline |
◆ setBundleAdjuster()
|
inline |
◆ setCompositingResol()
|
inline |
◆ setEstimator()
|
inline |
◆ setExposureCompensator()
|
inline |
◆ setFeaturesFinder()
◆ setFeaturesMatcher()
|
inline |
◆ setInterpolationFlags()
|
inline |
◆ setMatchingMask()
|
inline |
◆ setPanoConfidenceThresh()
|
inline |
◆ setRegistrationResol()
|
inline |
◆ setSeamEstimationResol()
|
inline |
◆ setSeamFinder()
|
inline |
◆ setTransform() [1/2]
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.
◆ setTransform() [2/2]
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.
- Parameters
-
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).
- Returns
- Status code.
◆ setWarper()
|
inline |
◆ setWaveCorrection()
|
inline |
◆ setWaveCorrectKind()
|
inline |
◆ stitch() [1/2]
Status cv::Stitcher::stitch | ( | InputArrayOfArrays | images, |
InputArrayOfArrays | masks, | ||
OutputArray | pano | ||
) |
These functions try to stitch the given images.
- Parameters
-
images Input images. masks Masks for each input image specifying where to look for keypoints (optional). pano Final pano.
- Returns
- Status code.
◆ stitch() [2/2]
Status cv::Stitcher::stitch | ( | InputArrayOfArrays | images, |
OutputArray | pano | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
◆ warper() [1/2]
|
inline |
◆ warper() [2/2]
|
inline |
◆ waveCorrection()
|
inline |
◆ waveCorrectKind()
|
inline |
◆ workScale()
|
inline |
Member Data Documentation
◆ ORIG_RESOL
|
static |
When setting a resolution for stitching, this values is a placeholder for preserving the original resolution.
The documentation for this class was generated from the following file:
- opencv2/stitching.hpp