OpenCV
3.3.0-dev
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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
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. |
|
inline |
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. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
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. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |