[][src]Trait opencv::stitching::StitcherTrait

pub trait StitcherTrait {
    pub fn as_raw_Stitcher(&self) -> *const c_void;
pub fn as_raw_mut_Stitcher(&mut self) -> *mut c_void; pub fn registration_resol(&self) -> Result<f64> { ... }
pub fn set_registration_resol(&mut self, resol_mpx: f64) -> Result<()> { ... }
pub fn seam_estimation_resol(&self) -> Result<f64> { ... }
pub fn set_seam_estimation_resol(&mut self, resol_mpx: f64) -> Result<()> { ... }
pub fn compositing_resol(&self) -> Result<f64> { ... }
pub fn set_compositing_resol(&mut self, resol_mpx: f64) -> Result<()> { ... }
pub fn pano_confidence_thresh(&self) -> Result<f64> { ... }
pub fn set_pano_confidence_thresh(&mut self, conf_thresh: f64) -> Result<()> { ... }
pub fn wave_correction(&self) -> Result<bool> { ... }
pub fn set_wave_correction(&mut self, flag: bool) -> Result<()> { ... }
pub fn interpolation_flags(&self) -> Result<InterpolationFlags> { ... }
pub fn set_interpolation_flags(
        &mut self,
        interp_flags: InterpolationFlags
    ) -> Result<()> { ... }
pub fn wave_correct_kind(&self) -> Result<Detail_WaveCorrectKind> { ... }
pub fn set_wave_correct_kind(
        &mut self,
        kind: Detail_WaveCorrectKind
    ) -> Result<()> { ... }
pub fn features_finder(&mut self) -> Result<Ptr<Feature2D>> { ... }
pub fn features_finder_1(&self) -> Result<Ptr<Feature2D>> { ... }
pub fn set_features_finder(
        &mut self,
        features_finder: Ptr<Feature2D>
    ) -> Result<()> { ... }
pub fn features_matcher(
        &mut self
    ) -> Result<Ptr<dyn Detail_FeaturesMatcher>> { ... }
pub fn features_matcher_1(&self) -> Result<Ptr<dyn Detail_FeaturesMatcher>> { ... }
pub fn set_features_matcher(
        &mut self,
        features_matcher: Ptr<dyn Detail_FeaturesMatcher>
    ) -> Result<()> { ... }
pub fn matching_mask(&self) -> Result<UMat> { ... }
pub fn set_matching_mask(&mut self, mask: &UMat) -> Result<()> { ... }
pub fn bundle_adjuster(
        &mut self
    ) -> Result<Ptr<dyn Detail_BundleAdjusterBase>> { ... }
pub fn bundle_adjuster_1(
        &self
    ) -> Result<Ptr<dyn Detail_BundleAdjusterBase>> { ... }
pub fn set_bundle_adjuster(
        &mut self,
        bundle_adjuster: Ptr<dyn Detail_BundleAdjusterBase>
    ) -> Result<()> { ... }
pub fn estimator(&mut self) -> Result<Ptr<dyn Detail_Estimator>> { ... }
pub fn estimator_1(&self) -> Result<Ptr<dyn Detail_Estimator>> { ... }
pub fn set_estimator(
        &mut self,
        estimator: Ptr<dyn Detail_Estimator>
    ) -> Result<()> { ... }
pub fn warper(&mut self) -> Result<Ptr<dyn WarperCreator>> { ... }
pub fn warper_1(&self) -> Result<Ptr<dyn WarperCreator>> { ... }
pub fn set_warper(&mut self, creator: Ptr<dyn WarperCreator>) -> Result<()> { ... }
pub fn exposure_compensator(
        &mut self
    ) -> Result<Ptr<dyn Detail_ExposureCompensator>> { ... }
pub fn exposure_compensator_1(
        &self
    ) -> Result<Ptr<dyn Detail_ExposureCompensator>> { ... }
pub fn set_exposure_compensator(
        &mut self,
        exposure_comp: Ptr<dyn Detail_ExposureCompensator>
    ) -> Result<()> { ... }
pub fn seam_finder(&mut self) -> Result<Ptr<dyn Detail_SeamFinder>> { ... }
pub fn seam_finder_1(&self) -> Result<Ptr<dyn Detail_SeamFinder>> { ... }
pub fn set_seam_finder(
        &mut self,
        seam_finder: Ptr<dyn Detail_SeamFinder>
    ) -> Result<()> { ... }
pub fn blender(&mut self) -> Result<Ptr<Detail_Blender>> { ... }
pub fn blender_1(&self) -> Result<Ptr<Detail_Blender>> { ... }
pub fn set_blender(&mut self, b: Ptr<Detail_Blender>) -> Result<()> { ... }
pub fn estimate_transform(
        &mut self,
        images: &dyn ToInputArray,
        masks: &dyn ToInputArray
    ) -> Result<Stitcher_Status> { ... }
pub fn compose_panorama(
        &mut self,
        pano: &mut dyn ToOutputArray
    ) -> Result<Stitcher_Status> { ... }
pub fn compose_panorama_images(
        &mut self,
        images: &dyn ToInputArray,
        pano: &mut dyn ToOutputArray
    ) -> Result<Stitcher_Status> { ... }
pub fn stitch(
        &mut self,
        images: &dyn ToInputArray,
        pano: &mut dyn ToOutputArray
    ) -> Result<Stitcher_Status> { ... }
pub fn stitch_mask(
        &mut self,
        images: &dyn ToInputArray,
        masks: &dyn ToInputArray,
        pano: &mut dyn ToOutputArray
    ) -> Result<Stitcher_Status> { ... }
pub fn component(&self) -> Result<Vector<i32>> { ... }
pub fn cameras(&self) -> Result<Vector<Detail_CameraParams>> { ... }
pub fn work_scale(&self) -> Result<f64> { ... }
pub fn result_mask(&self) -> Result<UMat> { ... } }

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

Required methods

Loading content...

Provided methods

pub fn registration_resol(&self) -> Result<f64>[src]

pub fn set_registration_resol(&mut self, resol_mpx: f64) -> Result<()>[src]

pub fn seam_estimation_resol(&self) -> Result<f64>[src]

pub fn set_seam_estimation_resol(&mut self, resol_mpx: f64) -> Result<()>[src]

pub fn compositing_resol(&self) -> Result<f64>[src]

pub fn set_compositing_resol(&mut self, resol_mpx: f64) -> Result<()>[src]

pub fn pano_confidence_thresh(&self) -> Result<f64>[src]

pub fn set_pano_confidence_thresh(&mut self, conf_thresh: f64) -> Result<()>[src]

pub fn wave_correction(&self) -> Result<bool>[src]

pub fn set_wave_correction(&mut self, flag: bool) -> Result<()>[src]

pub fn interpolation_flags(&self) -> Result<InterpolationFlags>[src]

pub fn set_interpolation_flags(
    &mut self,
    interp_flags: InterpolationFlags
) -> Result<()>
[src]

pub fn wave_correct_kind(&self) -> Result<Detail_WaveCorrectKind>[src]

pub fn set_wave_correct_kind(
    &mut self,
    kind: Detail_WaveCorrectKind
) -> Result<()>
[src]

pub fn features_finder(&mut self) -> Result<Ptr<Feature2D>>[src]

pub fn features_finder_1(&self) -> Result<Ptr<Feature2D>>[src]

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

pub fn features_matcher(&mut self) -> Result<Ptr<dyn Detail_FeaturesMatcher>>[src]

pub fn features_matcher_1(&self) -> Result<Ptr<dyn Detail_FeaturesMatcher>>[src]

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

pub fn matching_mask(&self) -> Result<UMat>[src]

pub fn set_matching_mask(&mut self, mask: &UMat) -> Result<()>[src]

pub fn bundle_adjuster(&mut self) -> Result<Ptr<dyn Detail_BundleAdjusterBase>>[src]

pub fn bundle_adjuster_1(&self) -> Result<Ptr<dyn Detail_BundleAdjusterBase>>[src]

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

pub fn estimator(&mut self) -> Result<Ptr<dyn Detail_Estimator>>[src]

pub fn estimator_1(&self) -> Result<Ptr<dyn Detail_Estimator>>[src]

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

pub fn warper(&mut self) -> Result<Ptr<dyn WarperCreator>>[src]

pub fn warper_1(&self) -> Result<Ptr<dyn WarperCreator>>[src]

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

pub fn exposure_compensator(
    &mut self
) -> Result<Ptr<dyn Detail_ExposureCompensator>>
[src]

pub fn exposure_compensator_1(
    &self
) -> Result<Ptr<dyn Detail_ExposureCompensator>>
[src]

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

pub fn seam_finder(&mut self) -> Result<Ptr<dyn Detail_SeamFinder>>[src]

pub fn seam_finder_1(&self) -> Result<Ptr<dyn Detail_SeamFinder>>[src]

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

pub fn blender(&mut self) -> Result<Ptr<Detail_Blender>>[src]

pub fn blender_1(&self) -> Result<Ptr<Detail_Blender>>[src]

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

pub fn estimate_transform(
    &mut self,
    images: &dyn ToInputArray,
    masks: &dyn ToInputArray
) -> Result<Stitcher_Status>
[src]

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.

C++ default parameters

  • masks: noArray()

pub fn compose_panorama(
    &mut self,
    pano: &mut dyn ToOutputArray
) -> Result<Stitcher_Status>
[src]

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.

Overloaded parameters

pub fn compose_panorama_images(
    &mut self,
    images: &dyn ToInputArray,
    pano: &mut dyn ToOutputArray
) -> Result<Stitcher_Status>
[src]

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.

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

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.

Overloaded parameters

pub fn stitch_mask(
    &mut self,
    images: &dyn ToInputArray,
    masks: &dyn ToInputArray,
    pano: &mut dyn ToOutputArray
) -> Result<Stitcher_Status>
[src]

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.

pub fn component(&self) -> Result<Vector<i32>>[src]

pub fn cameras(&self) -> Result<Vector<Detail_CameraParams>>[src]

pub fn work_scale(&self) -> Result<f64>[src]

pub fn result_mask(&self) -> Result<UMat>[src]

Loading content...

Implementors

impl StitcherTrait for Stitcher[src]

impl StitcherTrait for PtrOfStitcher[src]

Loading content...