Ask Your Question

Revision history [back]

display OpenCV image at full “Retina” resolution on macOS

It was suggested I ask a new question, even though this same issue was asked in June 2016 and never answered.

When imshow is called on an OpenCV mat on an Apple macOS machine, it is displayed at half the “Retina” screen resolution. That is, it is twice the size it should be in both dimensions, essentially “zoomed in” or scaled up.

There may be a reason this is the default behavior. But I want to be able to display images at the same high resolution as the rest of the screen and at their “natural” size. Is there any way to do that?

I'm using OpenCV 4.1.2 on macOS Catalina 10.15.2 with Xcode/clang/c++

image description