Display 2D array of type Uint16 * as grayscale image
Unsolved
General and Desktop
-
I have a pointer to my image pixel values represented as Uint16 data type. I want to display it as a grayscale image in Qt. Is the QImage::QImage suitable for this task? If yes, how can I convert Uint16 * to uchar * ? Moreover, how to make grayscale image? I tried all the provided maps but no one displays it well.