[−][src]Trait opencv::shape::prelude::ShapeTransformer
Abstract base class for shape transformation algorithms.
Required methods
pub fn as_raw_ShapeTransformer(&self) -> *const c_void
[src]
pub fn as_raw_mut_ShapeTransformer(&mut self) -> *mut c_void
[src]
Provided methods
pub fn estimate_transformation(
&mut self,
transforming_shape: &dyn ToInputArray,
target_shape: &dyn ToInputArray,
matches: &mut Vector<DMatch>
) -> Result<()>
[src]
&mut self,
transforming_shape: &dyn ToInputArray,
target_shape: &dyn ToInputArray,
matches: &mut Vector<DMatch>
) -> Result<()>
Estimate the transformation parameters of the current transformer algorithm, based on point matches.
Parameters
- transformingShape: Contour defining first shape.
- targetShape: Contour defining second shape (Target).
- matches: Standard vector of Matches between points.
pub fn apply_transformation(
&mut self,
input: &dyn ToInputArray,
output: &mut dyn ToOutputArray
) -> Result<f32>
[src]
&mut self,
input: &dyn ToInputArray,
output: &mut dyn ToOutputArray
) -> Result<f32>
Apply a transformation, given a pre-estimated transformation parameters.
Parameters
- input: Contour (set of points) to apply the transformation.
- output: Output contour.
C++ default parameters
- output: noArray()
pub fn warp_image(
&self,
transforming_image: &dyn ToInputArray,
output: &mut dyn ToOutputArray,
flags: i32,
border_mode: i32,
border_value: Scalar
) -> Result<()>
[src]
&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()