Struct opencv::stitching::Stitcher [−][src]
pub struct Stitcher { /* fields omitted */ }
Expand 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
Implementations
Creates a Stitcher configured in one of the stitching modes.
Parameters
- 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.
Returns
Stitcher class instance.
C++ default parameters
- mode: Stitcher::PANORAMA
Trait Implementations
fn set_features_matcher(
&mut self,
features_matcher: Ptr<dyn Detail_FeaturesMatcher>
) -> Result<()>
fn set_bundle_adjuster(
&mut self,
bundle_adjuster: Ptr<dyn Detail_BundleAdjusterBase>
) -> Result<()>
fn set_exposure_compensator(
&mut self,
exposure_comp: Ptr<dyn Detail_ExposureCompensator>
) -> Result<()>
fn estimate_transform(
&mut self,
images: &dyn ToInputArray,
masks: &dyn ToInputArray
) -> Result<Stitcher_Status>
fn estimate_transform(
&mut self,
images: &dyn ToInputArray,
masks: &dyn ToInputArray
) -> Result<Stitcher_Status>
These functions try to match the given images and to estimate rotations of each camera. Read more
fn set_transform(
&mut self,
images: &dyn ToInputArray,
cameras: &Vector<Detail_CameraParams>,
component: &Vector<i32>
) -> Result<Stitcher_Status>
fn set_transform(
&mut self,
images: &dyn ToInputArray,
cameras: &Vector<Detail_CameraParams>,
component: &Vector<i32>
) -> Result<Stitcher_Status>
These function restors camera rotation and camera intrinsics of each camera that can be got with @ref Stitcher::cameras call Read more
fn set_transform_1(
&mut self,
images: &dyn ToInputArray,
cameras: &Vector<Detail_CameraParams>
) -> Result<Stitcher_Status>
fn set_transform_1(
&mut self,
images: &dyn ToInputArray,
cameras: &Vector<Detail_CameraParams>
) -> Result<Stitcher_Status>
These function restors camera rotation and camera intrinsics of each camera that can be got with @ref Stitcher::cameras call Read more
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. Read more
fn compose_panorama_images(
&mut self,
images: &dyn ToInputArray,
pano: &mut dyn ToOutputArray
) -> Result<Stitcher_Status>
fn compose_panorama_images(
&mut self,
images: &dyn ToInputArray,
pano: &mut dyn ToOutputArray
) -> Result<Stitcher_Status>
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. Read more
fn stitch(
&mut self,
images: &dyn ToInputArray,
pano: &mut dyn ToOutputArray
) -> Result<Stitcher_Status>
fn stitch(
&mut self,
images: &dyn ToInputArray,
pano: &mut dyn ToOutputArray
) -> Result<Stitcher_Status>
These functions try to stitch the given images. Read more
fn stitch_mask(
&mut self,
images: &dyn ToInputArray,
masks: &dyn ToInputArray,
pano: &mut dyn ToOutputArray
) -> Result<Stitcher_Status>
fn stitch_mask(
&mut self,
images: &dyn ToInputArray,
masks: &dyn ToInputArray,
pano: &mut dyn ToOutputArray
) -> Result<Stitcher_Status>
These functions try to stitch the given images. Read more