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

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

Constant methods for crate::shape::ShapeTransformer

Required Methods§

Provided Methods§

source

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

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§