[−][src]Trait opencv::shape::ShapeTransformer
Abstract base class for shape transformation algorithms.
Required methods
fn as_raw_ShapeTransformer(&self) -> *mut c_void
Provided methods
fn estimate_transformation(
&mut self,
transforming_shape: &dyn ToInputArray,
target_shape: &dyn ToInputArray,
matches: &mut VectorOfDMatch
) -> Result<()>
&mut self,
transforming_shape: &dyn ToInputArray,
target_shape: &dyn ToInputArray,
matches: &mut VectorOfDMatch
) -> 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.
fn apply_transformation(
&mut self,
input: &dyn ToInputArray,
output: &mut dyn ToOutputArray
) -> Result<f32>
&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()
fn warp_image(
&self,
transforming_image: &dyn ToInputArray,
output: &mut dyn ToOutputArray,
flags: i32,
border_mode: i32,
border_value: Scalar
) -> Result<()>
&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()