pub trait StitcherTrait: StitcherTraitConst {
Show 33 methods
// Required method
fn as_raw_mut_Stitcher(&mut self) -> *mut c_void;
// Provided methods
fn set_registration_resol(&mut self, resol_mpx: f64) -> Result<()> { ... }
fn set_seam_estimation_resol(&mut self, resol_mpx: f64) -> Result<()> { ... }
fn set_compositing_resol(&mut self, resol_mpx: f64) -> Result<()> { ... }
fn set_pano_confidence_thresh(&mut self, conf_thresh: f64) -> Result<()> { ... }
fn set_wave_correction(&mut self, flag: bool) -> Result<()> { ... }
fn set_interpolation_flags(
&mut self,
interp_flags: InterpolationFlags,
) -> Result<()> { ... }
fn set_wave_correct_kind(
&mut self,
kind: Detail_WaveCorrectKind,
) -> Result<()> { ... }
fn features_finder_1(&mut self) -> Result<Ptr<Feature2D>> { ... }
fn set_features_finder(
&mut self,
features_finder: Ptr<Feature2D>,
) -> Result<()> { ... }
fn features_matcher_1(&mut self) -> Result<Ptr<Detail_FeaturesMatcher>> { ... }
fn set_features_matcher(
&mut self,
features_matcher: Ptr<Detail_FeaturesMatcher>,
) -> Result<()> { ... }
fn set_matching_mask(&mut self, mask: &impl UMatTraitConst) -> Result<()> { ... }
fn bundle_adjuster_1(&mut self) -> Result<Ptr<Detail_BundleAdjusterBase>> { ... }
fn set_bundle_adjuster(
&mut self,
bundle_adjuster: Ptr<Detail_BundleAdjusterBase>,
) -> Result<()> { ... }
fn estimator_1(&mut self) -> Result<Ptr<Detail_Estimator>> { ... }
fn set_estimator(&mut self, estimator: Ptr<Detail_Estimator>) -> Result<()> { ... }
fn warper_1(&mut self) -> Result<Ptr<WarperCreator>> { ... }
fn set_warper(&mut self, creator: Ptr<WarperCreator>) -> Result<()> { ... }
fn exposure_compensator_1(
&mut self,
) -> Result<Ptr<Detail_ExposureCompensator>> { ... }
fn set_exposure_compensator(
&mut self,
exposure_comp: Ptr<Detail_ExposureCompensator>,
) -> Result<()> { ... }
fn seam_finder_1(&mut self) -> Result<Ptr<Detail_SeamFinder>> { ... }
fn set_seam_finder(
&mut self,
seam_finder: Ptr<Detail_SeamFinder>,
) -> Result<()> { ... }
fn blender_1(&mut self) -> Result<Ptr<Detail_Blender>> { ... }
fn set_blender(&mut self, b: Ptr<Detail_Blender>) -> Result<()> { ... }
fn estimate_transform(
&mut self,
images: &impl ToInputArray,
masks: &impl ToInputArray,
) -> Result<Stitcher_Status> { ... }
fn estimate_transform_def(
&mut self,
images: &impl ToInputArray,
) -> Result<Stitcher_Status> { ... }
fn set_transform(
&mut self,
images: &impl ToInputArray,
cameras: &Vector<Detail_CameraParams>,
component: &Vector<i32>,
) -> Result<Stitcher_Status> { ... }
fn set_transform_1(
&mut self,
images: &impl ToInputArray,
cameras: &Vector<Detail_CameraParams>,
) -> Result<Stitcher_Status> { ... }
fn compose_panorama(
&mut self,
pano: &mut impl ToOutputArray,
) -> Result<Stitcher_Status> { ... }
fn compose_panorama_images(
&mut self,
images: &impl ToInputArray,
pano: &mut impl ToOutputArray,
) -> Result<Stitcher_Status> { ... }
fn stitch(
&mut self,
images: &impl ToInputArray,
pano: &mut impl ToOutputArray,
) -> Result<Stitcher_Status> { ... }
fn stitch_mask(
&mut self,
images: &impl ToInputArray,
masks: &impl ToInputArray,
pano: &mut impl ToOutputArray,
) -> Result<Stitcher_Status> { ... }
}
Expand description
Mutable methods for crate::stitching::Stitcher
Required Methods§
fn as_raw_mut_Stitcher(&mut self) -> *mut c_void
Provided Methods§
fn set_registration_resol(&mut self, resol_mpx: f64) -> Result<()>
fn set_seam_estimation_resol(&mut self, resol_mpx: f64) -> Result<()>
fn set_compositing_resol(&mut self, resol_mpx: f64) -> Result<()>
fn set_pano_confidence_thresh(&mut self, conf_thresh: f64) -> Result<()>
fn set_wave_correction(&mut self, flag: bool) -> Result<()>
fn set_interpolation_flags( &mut self, interp_flags: InterpolationFlags, ) -> Result<()>
fn set_wave_correct_kind(&mut self, kind: Detail_WaveCorrectKind) -> Result<()>
fn features_finder_1(&mut self) -> Result<Ptr<Feature2D>>
fn set_features_finder(&mut self, features_finder: Ptr<Feature2D>) -> Result<()>
fn features_matcher_1(&mut self) -> Result<Ptr<Detail_FeaturesMatcher>>
fn set_features_matcher( &mut self, features_matcher: Ptr<Detail_FeaturesMatcher>, ) -> Result<()>
fn set_matching_mask(&mut self, mask: &impl UMatTraitConst) -> Result<()>
fn bundle_adjuster_1(&mut self) -> Result<Ptr<Detail_BundleAdjusterBase>>
fn set_bundle_adjuster( &mut self, bundle_adjuster: Ptr<Detail_BundleAdjusterBase>, ) -> Result<()>
fn estimator_1(&mut self) -> Result<Ptr<Detail_Estimator>>
fn set_estimator(&mut self, estimator: Ptr<Detail_Estimator>) -> Result<()>
fn warper_1(&mut self) -> Result<Ptr<WarperCreator>>
fn set_warper(&mut self, creator: Ptr<WarperCreator>) -> Result<()>
fn exposure_compensator_1(&mut self) -> Result<Ptr<Detail_ExposureCompensator>>
fn set_exposure_compensator( &mut self, exposure_comp: Ptr<Detail_ExposureCompensator>, ) -> Result<()>
fn seam_finder_1(&mut self) -> Result<Ptr<Detail_SeamFinder>>
fn set_seam_finder(&mut self, seam_finder: Ptr<Detail_SeamFinder>) -> Result<()>
fn blender_1(&mut self) -> Result<Ptr<Detail_Blender>>
fn set_blender(&mut self, b: Ptr<Detail_Blender>) -> Result<()>
Sourcefn estimate_transform(
&mut self,
images: &impl ToInputArray,
masks: &impl ToInputArray,
) -> Result<Stitcher_Status>
fn estimate_transform( &mut self, images: &impl ToInputArray, masks: &impl ToInputArray, ) -> Result<Stitcher_Status>
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()
Sourcefn estimate_transform_def(
&mut self,
images: &impl ToInputArray,
) -> Result<Stitcher_Status>
fn estimate_transform_def( &mut self, images: &impl ToInputArray, ) -> Result<Stitcher_Status>
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.
§Note
This alternative version of StitcherTrait::estimate_transform function uses the following default values for its arguments:
- masks: noArray()
Sourcefn set_transform(
&mut self,
images: &impl ToInputArray,
cameras: &Vector<Detail_CameraParams>,
component: &Vector<i32>,
) -> Result<Stitcher_Status>
fn set_transform( &mut self, images: &impl 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
§Parameters
- images: Input images.
- cameras: Estimated rotation of cameras for each of the input images.
- component: Indices (0-based) of images constituting the final panorama (optional).
§Returns
Status code.
Sourcefn set_transform_1(
&mut self,
images: &impl ToInputArray,
cameras: &Vector<Detail_CameraParams>,
) -> Result<Stitcher_Status>
fn set_transform_1( &mut self, images: &impl 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
§Parameters
- images: Input images.
- cameras: Estimated rotation of cameras for each of the input images.
- component: Indices (0-based) of images constituting the final panorama (optional).
§Returns
Status code.
§Overloaded parameters
Sourcefn compose_panorama(
&mut self,
pano: &mut impl ToOutputArray,
) -> Result<Stitcher_Status>
fn compose_panorama( &mut self, pano: &mut impl 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.
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
Sourcefn compose_panorama_images(
&mut self,
images: &impl ToInputArray,
pano: &mut impl ToOutputArray,
) -> Result<Stitcher_Status>
fn compose_panorama_images( &mut self, images: &impl ToInputArray, pano: &mut impl 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.
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.
Sourcefn stitch(
&mut self,
images: &impl ToInputArray,
pano: &mut impl ToOutputArray,
) -> Result<Stitcher_Status>
fn stitch( &mut self, images: &impl ToInputArray, pano: &mut impl ToOutputArray, ) -> Result<Stitcher_Status>
Sourcefn stitch_mask(
&mut self,
images: &impl ToInputArray,
masks: &impl ToInputArray,
pano: &mut impl ToOutputArray,
) -> Result<Stitcher_Status>
fn stitch_mask( &mut self, images: &impl ToInputArray, masks: &impl ToInputArray, pano: &mut impl ToOutputArray, ) -> Result<Stitcher_Status>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.