Trait SparseMatchInterpolatorTrait

Source
pub trait SparseMatchInterpolatorTrait: AlgorithmTrait + SparseMatchInterpolatorTraitConst {
    // Required method
    fn as_raw_mut_SparseMatchInterpolator(&mut self) -> *mut c_void;

    // Provided method
    fn interpolate(
        &mut self,
        from_image: &impl ToInputArray,
        from_points: &impl ToInputArray,
        to_image: &impl ToInputArray,
        to_points: &impl ToInputArray,
        dense_flow: &mut impl ToOutputArray,
    ) -> Result<()> { ... }
}
Expand description

Required Methods§

Provided Methods§

Source

fn interpolate( &mut self, from_image: &impl ToInputArray, from_points: &impl ToInputArray, to_image: &impl ToInputArray, to_points: &impl ToInputArray, dense_flow: &mut impl ToOutputArray, ) -> Result<()>

Interpolate input sparse matches.

§Parameters
  • from_image: first of the two matched images, 8-bit single-channel or three-channel.

  • from_points: points of the from_image for which there are correspondences in the to_image (Point2f vector or Mat of depth CV_32F)

  • to_image: second of the two matched images, 8-bit single-channel or three-channel.

  • to_points: points in the to_image corresponding to from_points (Point2f vector or Mat of depth CV_32F)

  • dense_flow: output dense matching (two-channel CV_32F image)

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.

Implementors§