OpenCV
3.2.0
Open Source Computer Vision
|
High level image stitcher. More...
#include "stitching.hpp"
Public Types | |
enum | { ORIG_RESOL = -1 } |
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=PANORAMA, bool try_use_gpu=false) |
Creates a Stitcher configured in one of the stitching modes. More... | |
static Stitcher | createDefault (bool try_use_gpu=false) |
Creates a stitcher with the default parameters. More... | |
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 |
enum cv::Stitcher::Status |
Ptr<detail::Blender> cv::Stitcher::blender | ( | ) |
const Ptr<detail::Blender> cv::Stitcher::blender | ( | ) | const |
Ptr<detail::BundleAdjusterBase> cv::Stitcher::bundleAdjuster | ( | ) |
const Ptr<detail::BundleAdjusterBase> cv::Stitcher::bundleAdjuster | ( | ) | const |
std::vector<detail::CameraParams> cv::Stitcher::cameras | ( | ) | const |
std::vector<int> cv::Stitcher::component | ( | ) | const |
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.
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.
images | Input images. |
pano | Final pano. |
double cv::Stitcher::compositingResol | ( | ) | const |
Creates a Stitcher configured in one of the stitching modes.
mode | Scenario for stitcher operation. This is usually determined by source of images to stitch and their transformation. Default parameters will be chosen for operation in given scenario. |
try_use_gpu | Flag indicating whether GPU should be used whenever it's possible. |
|
static |
Creates a stitcher with the default parameters.
try_use_gpu | Flag indicating whether GPU should be used whenever it's possible. |
Status cv::Stitcher::estimateTransform | ( | InputArrayOfArrays | images | ) |
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::estimateTransform | ( | InputArrayOfArrays | images, |
const std::vector< std::vector< Rect > > & | rois | ||
) |
These functions try to match the given images and to estimate rotations of each camera.
images | Input images. |
rois | Region of interest rectangles. |
Ptr<detail::ExposureCompensator> cv::Stitcher::exposureCompensator | ( | ) |
const Ptr<detail::ExposureCompensator> cv::Stitcher::exposureCompensator | ( | ) | const |
Ptr<detail::FeaturesFinder> cv::Stitcher::featuresFinder | ( | ) |
const Ptr<detail::FeaturesFinder> cv::Stitcher::featuresFinder | ( | ) | const |
Ptr<detail::FeaturesMatcher> cv::Stitcher::featuresMatcher | ( | ) |
const Ptr<detail::FeaturesMatcher> cv::Stitcher::featuresMatcher | ( | ) | const |
const cv::UMat& cv::Stitcher::matchingMask | ( | ) | const |
double cv::Stitcher::panoConfidenceThresh | ( | ) | const |
double cv::Stitcher::registrationResol | ( | ) | const |
double cv::Stitcher::seamEstimationResol | ( | ) | const |
Ptr<detail::SeamFinder> cv::Stitcher::seamFinder | ( | ) |
const Ptr<detail::SeamFinder> cv::Stitcher::seamFinder | ( | ) | const |
void cv::Stitcher::setBlender | ( | Ptr< detail::Blender > | b | ) |
void cv::Stitcher::setBundleAdjuster | ( | Ptr< detail::BundleAdjusterBase > | bundle_adjuster | ) |
void cv::Stitcher::setCompositingResol | ( | double | resol_mpx | ) |
void cv::Stitcher::setExposureCompensator | ( | Ptr< detail::ExposureCompensator > | exposure_comp | ) |
void cv::Stitcher::setFeaturesFinder | ( | Ptr< detail::FeaturesFinder > | features_finder | ) |
void cv::Stitcher::setFeaturesMatcher | ( | Ptr< detail::FeaturesMatcher > | features_matcher | ) |
void cv::Stitcher::setMatchingMask | ( | const cv::UMat & | mask | ) |
void cv::Stitcher::setPanoConfidenceThresh | ( | double | conf_thresh | ) |
void cv::Stitcher::setRegistrationResol | ( | double | resol_mpx | ) |
void cv::Stitcher::setSeamEstimationResol | ( | double | resol_mpx | ) |
void cv::Stitcher::setSeamFinder | ( | Ptr< detail::SeamFinder > | seam_finder | ) |
void cv::Stitcher::setWarper | ( | Ptr< WarperCreator > | creator | ) |
void cv::Stitcher::setWaveCorrection | ( | bool | flag | ) |
void cv::Stitcher::setWaveCorrectKind | ( | detail::WaveCorrectKind | kind | ) |
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.
Status cv::Stitcher::stitch | ( | InputArrayOfArrays | images, |
const std::vector< std::vector< Rect > > & | rois, | ||
OutputArray | pano | ||
) |
These functions try to stitch the given images.
images | Input images. |
rois | Region of interest rectangles. |
pano | Final pano. |
Ptr<WarperCreator> cv::Stitcher::warper | ( | ) |
const Ptr<WarperCreator> cv::Stitcher::warper | ( | ) | const |
bool cv::Stitcher::waveCorrection | ( | ) | const |
detail::WaveCorrectKind cv::Stitcher::waveCorrectKind | ( | ) | const |
double cv::Stitcher::workScale | ( | ) | const |