Ask Your Question
0

Incorrect mouse coordinates using HighGUI? Possibly a bug?

asked 2013-02-20 21:29:18 -0600

ycl gravatar image

updated 2013-02-21 01:13:48 -0600

This seems to be a problem only when the image displayed is much bigger than the screen, so it may only be a minor problem. For example, if an image displayed at 100% in a namedWindow has width 3000 pixels and is much wider than the screen size, then OpenCV will open a window much smaller than this width. And the full width of the image will not be displayed in the namedWindow. However, setting up a callback, the x,y coordinates from CV_EVENT_MOUSEMOVE seem to be incorrect. Maybe the coordinates from the mouse event gets scaled even though the namedWindow's width is not the same as the image width.

Perhaps this HighGUI portion of OpenCV is already considered deprecated? I'm using version 2.4.3 on 32 bit Windows with Visual C++. Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-02-21 00:48:51 -0600

It looks like a bug. I recommend you to create issue on OpenCV bug tracker. OpenCV is open source project and you can contribute your solution via pull request on Github.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-02-20 21:29:18 -0600

Seen: 240 times

Last updated: Feb 21 '13