Ask Your Question
0

What is the functionality of **warpImage** which is an inherited member function from shape transformer

asked 2017-05-26 03:25:11 -0500

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

Can somebody brief me the idea behind this function and its utility?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-05-26 03:48:45 -0500

kbarni gravatar image

Short answer: it's a pure virtual function, so it has no utility and the idea is to provide a common function interface for the inherited classes.

Longer answer: ShapeTransformer is a virtual class with no functionality. It's a common base for the Affine and ThinSpline transformers, so OpenCV's algorithms can use both classes using the same code (hence the "pure virtual" function).

That said, you can avoid to use directly either the AffineTransformer or ThinPlateSplineShapeTransformer classes, it's more simple to use the geometric image transformation functions, like WarpAffine, WarpPerspective, Remap, LogToPolar, Undisort, etc.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-05-26 03:25:11 -0500

Seen: 241 times

Last updated: May 26 '17