cv::ShapeTransformer Class Reference abstract 形状距离和匹配


Abstract base class for shape transformation algorithms. 更多...

#include <opencv2/shape/shape_transformer.hpp>

Inheritance diagram for cv::ShapeTransformer:
cv::Algorithm cv::AffineTransformer cv::ThinPlateSplineShapeTransformer

Public Member Functions

virtual float applyTransformation ( InputArray input, OutputArray output= noArray ())=0
Apply a transformation, given a pre-estimated transformation parameters. 更多...
virtual void estimateTransformation ( InputArray transformingShape, InputArray targetShape, std::vector< DMatch > &matches)=0
Estimate the transformation parameters of the current transformer algorithm, based on point matches. 更多...
virtual void warpImage ( InputArray transformingImage, OutputArray output, int flags= INTER_LINEAR , int borderMode= BORDER_CONSTANT , const Scalar &borderValue= Scalar ()) const =0
Apply a transformation, given a pre-estimated transformation parameters, to an Image. 更多...
- Public Member Functions inherited from cv::Algorithm
Algorithm ()
virtual ~Algorithm ()
virtual void clear ()
Clears the algorithm state. 更多...
virtual bool empty () const
返回 true 若 Algorithm is empty (e.g. in the very beginning or after unsuccessful read. 更多...
virtual 字符串 getDefaultName () const
virtual void read (const FileNode &fn)
Reads algorithm parameters from a file storage. 更多...
virtual void save (const 字符串 &filename) const
virtual void write ( FileStorage &fs) const
Stores algorithm parameters in a file storage. 更多...
void write (const Ptr < FileStorage > &fs, const 字符串 &name= 字符串 ()) const
simplified API for language bindings This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. 更多...

额外继承成员

- Static Public Member Functions inherited from cv::Algorithm
template<typename _Tp >
static Ptr < _Tp > load (const 字符串 &filename, const 字符串 &objname= 字符串 ())
Loads algorithm from the file. 更多...
template<typename _Tp >
static Ptr < _Tp > loadFromString (const 字符串 &strModel, const 字符串 &objname= 字符串 ())
Loads algorithm from a String. 更多...
template<typename _Tp >
static Ptr < _Tp > read (const FileNode &fn)
Reads algorithm from the file node. 更多...
- Protected Member Functions inherited from cv::Algorithm
void writeFormat ( FileStorage &fs) const

详细描述

Abstract base class for shape transformation algorithms.

成员函数文档编制

applyTransformation()

virtual float cv::ShapeTransformer::applyTransformation ( InputArray input ,
OutputArray output = noArray ()
)
pure virtual
Python:
retval, output = cv.ShapeTransformer.applyTransformation( input[, output] )

Apply a transformation, given a pre-estimated transformation parameters.

参数
input Contour (set of points) to apply the transformation.
output Output contour.

estimateTransformation()

virtual void cv::ShapeTransformer::estimateTransformation ( InputArray transformingShape ,
InputArray targetShape ,
std::vector< DMatch > & matches
)
pure virtual
Python:
None = cv.ShapeTransformer.estimateTransformation( transformingShape, targetShape, matches )

Estimate the transformation parameters of the current transformer algorithm, based on point matches.

参数
transformingShape Contour defining first shape.
targetShape Contour defining second shape (Target).
matches Standard vector of Matches between points.

warpImage()

virtual void cv::ShapeTransformer::warpImage ( InputArray transformingImage ,
OutputArray output ,
int flags = INTER_LINEAR ,
int borderMode = BORDER_CONSTANT ,
const Scalar & borderValue = Scalar ()
) const
pure virtual
Python:
output = cv.ShapeTransformer.warpImage( transformingImage[, output[, flags[, borderMode[, borderValue]]]] )

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

参数
transformingImage Input image.
output Output image.
flags Image interpolation method.
borderMode border style.
borderValue border value.

The documentation for this class was generated from the following file: