WarpPoint returns negative value
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?