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

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

Main interface for all filters, that take sparse matches as an input and produce a dense per-pixel matching (optical flow) as an output.

Required Methods§

Provided Methods§

source

fn interpolate( &mut self, from_image: &dyn ToInputArray, from_points: &dyn ToInputArray, to_image: &dyn ToInputArray, to_points: &dyn ToInputArray, dense_flow: &mut dyn 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)

Implementors§