WarpPoint returns negative value

asked 2018-08-06 15:55:18 -0500

cjsb gravatar image

Hi all,

I have some region of interest in my source images which I would like to visualise after doing a warping.

So, I tried to warp the points using the warpPoint function so that I could re-draw these ROIs on the final image.

This also does not seem to work as I am getting negative coordinates for my points.

The code is:

Mat dst; wrap.warp(origImg, K, R, INTER_LINEAR, BORDER_CONSTANT, dst);

Point2f p = wrap.warpPoint(Point2f(0, 0), K, R);

How can I find the point position after the warping correctly?

edit retag flag offensive close merge delete