pub trait ShapeTransformerConst: AlgorithmTraitConst {
    fn as_raw_ShapeTransformer(&self) -> *const c_void;

    fn warp_image(
        &self,
        transforming_image: &dyn ToInputArray,
        output: &mut dyn ToOutputArray,
        flags: i32,
        border_mode: i32,
        border_value: Scalar
    ) -> Result<()> { ... } }
Expand description

Abstract base class for shape transformation algorithms.

Required Methods

Provided Methods

Apply a transformation, given a pre-estimated transformation parameters, to an Image.

Parameters
  • transformingImage: Input image.
  • output: Output image.
  • flags: Image interpolation method.
  • borderMode: border style.
  • borderValue: border value.
C++ default parameters
  • flags: INTER_LINEAR
  • border_mode: BORDER_CONSTANT
  • border_value: Scalar()

Implementors