warpPoint question [closed]

asked 2018-08-02 18:45:17 -0600

cjsb gravatar image

updated 2018-08-06 12:12:16 -0600

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 reopen merge delete

Closed for the following reason duplicate question by cjsb
close date 2018-08-06 15:53:52.599138

Comments

please be so kind, to close your issue here , as you do not have a bug to present.

berak gravatar imageberak ( 2018-08-02 19:52:27 -0600 )edit

we can't help you, without seing some code, i guess.

berak gravatar imageberak ( 2018-08-03 01:14:46 -0600 )edit

I have a

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

If I do wrap.warpPoint(Point2f(0, 0), K, R), the returned point has a negative axis value.

Don't know what it is happening.

cjsb gravatar imagecjsb ( 2018-08-06 12:09:30 -0600 )edit