SparseMatchInterpolator

Objective-C

@interface SparseMatchInterpolator : Algorithm

Swift

class SparseMatchInterpolator : Algorithm

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

Member of Ximgproc

Methods

  • Interpolate input sparse matches.

    Declaration

    Objective-C

    - (void)interpolate:(nonnull Mat *)from_image
            from_points:(nonnull Mat *)from_points
               to_image:(nonnull Mat *)to_image
              to_points:(nonnull Mat *)to_points
             dense_flow:(nonnull Mat *)dense_flow;

    Swift

    func interpolate(from_image: Mat, from_points: Mat, to_image: Mat, to_points: Mat, dense_flow: Mat)

    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, size shouldn’t exceed 32767)

    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, size shouldn’t exceed 32767)

    dense_flow

    output dense matching (two-channel CV_32F image)