QImage
While QPixmap is mainly for displaying images in Qt, QImage is designed and optimized for I/O, and for direct pixel access and manipulation. With this class, we can get information about images, such as its size, whether it has an alpha channel, whether it is a grayscale image and the color of any pixels in it.
QImage is designed for direct pixel access and manipulation, and it provides functions to do image processing, such as pixel manipulation and transformations. After all, the Qt library isn't a library that's dedicated to image processing, and so the features it provides in this domain can't slake our requirements in this chapter. Therefore, we will be using OpenCV to do the image processing after we convert QImage objects into ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access