The current flow for setDiskImage() goes from raw to Mat to QImage, meaning the pixels are iterated over twice. This usually works out to several seconds (for which the UI is blocked at the moment -- that should be changed as well). The time could be cut approximately in half by reading the raw image from the disk and converting directly to QImage.
The current flow for
setDiskImage()
goes from raw to Mat to QImage, meaning the pixels are iterated over twice. This usually works out to several seconds (for which the UI is blocked at the moment -- that should be changed as well). The time could be cut approximately in half by reading the raw image from the disk and converting directly to QImage.