[Interest] Problem with cv::Mat grayscale to QImage

Allan Jensen Allan.Jensen at qt.io
Fri Jun 21 16:00:16 CEST 2019


On Friday, 21 June 2019 15:52:55 CEST Jason H wrote:
> It seems that there is some word/dword/byte-alignment magic going on and the
> skew is proportional to that.  

Yes, scan-lines are 32bit aligned. So for non-32bit images we add padding to 
each line to make them align.

'Allan





More information about the Interest mailing list