Skip to content

Not well support qt-backend of cv::imshow(). #30

Open

Description

@wystephen
No description provided.

Activity

  1. wystephen commented on May 30, 2022

    @wystephen
    Author

    In detail, the right button of the mouse and the wheel of mouse are handled by cv::imshow.

  2. wpalfi commented on Jun 7, 2022

    @wpalfi
    Contributor

    Thank you for reporting, sounds reasonable. I dont have time to look into it. Would you like to provide a fix?

  3. wystephen commented on Jul 20, 2022

    @wystephen
    Author

    I want to make some modifications. But I am not familiar with OpenCV imshow() and your project. Could you give me some hints?

  4. wpalfi commented on Jul 20, 2022

    @wpalfi
    Contributor

    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.

  5. wystephen commented on Jul 20, 2022

    @wystephen
    Author

    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.

  6. wpalfi commented on Jul 20, 2022

    @wpalfi
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions