I’m seeing strange artifacts when using imread and imshow from PNG files.
If I load a JPEG image it is displayed correctly. However, even if I convert the correctly displayed JPEG image to PNG (using Photoshop for example), I get a very distorted image when loaded using OpenCV.
This a JPEG image exported as PNG (used Photoshop’s “Quick Export as PNG”) and displayed using OpenCV:
Any ideas what could be the cause here? This happens with every PNG file I try to load.
I did build the OpenCV lib myself – could this be caused by wrong build settings?
(OpenCV (4.5.2), macOS 11.5.2)