Struct opencv::stitching::Stitcher

source ·
pub struct Stitcher { /* private fields */ }
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§

source§

impl Stitcher

source

pub const ORIG_RESOL: f64 = -1f64

source

pub fn create(mode: Stitcher_Mode) -> Result<Ptr<Stitcher>>

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§

source§

impl Boxed for Stitcher

source§

unsafe fn from_raw(ptr: *mut c_void) -> Self

Wrap the specified raw pointer Read more
source§

fn into_raw(self) -> *mut c_void

Return an the underlying raw pointer while consuming this wrapper. Read more
source§

fn as_raw(&self) -> *const c_void

Return the underlying raw pointer. Read more
source§

fn as_raw_mut(&mut self) -> *mut c_void

Return the underlying mutable raw pointer Read more
source§

impl Drop for Stitcher

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl StitcherTrait for Stitcher

source§

fn as_raw_mut_Stitcher(&mut self) -> *mut c_void

source§

fn set_registration_resol(&mut self, resol_mpx: f64) -> Result<()>

source§

fn set_seam_estimation_resol(&mut self, resol_mpx: f64) -> Result<()>

source§

fn set_compositing_resol(&mut self, resol_mpx: f64) -> Result<()>

source§

fn set_pano_confidence_thresh(&mut self, conf_thresh: f64) -> Result<()>

source§

fn set_wave_correction(&mut self, flag: bool) -> Result<()>

source§

fn set_interpolation_flags( &mut self, interp_flags: InterpolationFlags ) -> Result<()>

source§

fn set_wave_correct_kind(&mut self, kind: Detail_WaveCorrectKind) -> Result<()>

source§

fn features_finder_1(&mut self) -> Result<Ptr<Feature2D>>

source§

fn set_features_finder(&mut self, features_finder: Ptr<Feature2D>) -> Result<()>

source§

fn features_matcher_1(&mut self) -> Result<Ptr<dyn Detail_FeaturesMatcher>>

source§

fn set_features_matcher( &mut self, features_matcher: Ptr<dyn Detail_FeaturesMatcher> ) -> Result<()>

source§

fn set_matching_mask(&mut self, mask: &UMat) -> Result<()>

source§

fn bundle_adjuster_1(&mut self) -> Result<Ptr<dyn Detail_BundleAdjusterBase>>

source§

fn set_bundle_adjuster( &mut self, bundle_adjuster: Ptr<dyn Detail_BundleAdjusterBase> ) -> Result<()>

source§

fn estimator_1(&mut self) -> Result<Ptr<dyn Detail_Estimator>>

source§

fn set_estimator(&mut self, estimator: Ptr<dyn Detail_Estimator>) -> Result<()>

source§

fn warper_1(&mut self) -> Result<Ptr<dyn WarperCreator>>

source§

fn set_warper(&mut self, creator: Ptr<dyn WarperCreator>) -> Result<()>

source§

fn exposure_compensator_1( &mut self ) -> Result<Ptr<dyn Detail_ExposureCompensator>>

source§

fn set_exposure_compensator( &mut self, exposure_comp: Ptr<dyn Detail_ExposureCompensator> ) -> Result<()>

source§

fn seam_finder_1(&mut self) -> Result<Ptr<dyn Detail_SeamFinder>>

source§

fn set_seam_finder( &mut self, seam_finder: Ptr<dyn Detail_SeamFinder> ) -> Result<()>

source§

fn blender_1(&mut self) -> Result<Ptr<Detail_Blender>>

source§

fn set_blender(&mut self, b: Ptr<Detail_Blender>) -> Result<()>

source§

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
source§

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 Stitcher::cameras call Read more
source§

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 Stitcher::cameras call Read more
source§

fn compose_panorama( &mut self, 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
source§

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
source§

fn stitch( &mut self, images: &dyn ToInputArray, pano: &mut dyn ToOutputArray ) -> Result<Stitcher_Status>

These functions try to stitch the given images. Read more
source§

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
source§

impl StitcherTraitConst for Stitcher

source§

impl Send for Stitcher

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.