Open wystephen opened 2 years ago
Thank you for reporting, sounds reasonable. I dont have time to look into it. Would you like to provide a fix?
I want to make some modifications. But I am not familiar with OpenCV imshow() and your project. Could you give me some hints?
I have no experience with the qt backend and never used it together with cv-plot. cv-plot's interactive viewer is based on cv::setMouseCallback()
and the traditional cv::imshow()
. The qt backend supports zooming which interferes with cv-plot's zooming. I guess it may be best to deactivate qt-zooming.
But I don't think deactivating qt-zooming is easy to implement without modifying OpenCV Lib. Is there any way to handle key press events for each window separately? Using a keyboard may be easier to be implemented.
Maybe using cv::WINDOW_GUI_NORMAL
works?
Another way could be to use an additional modifier key (ctrl/shift/alt) for cv-plot. You could try to subclass (or replace) CvPlot::Window
.
In detail, the right button of the mouse and the wheel of mouse are handled by cv::imshow.