Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi berak and boaz, you both gave me the right hint, thank you very much!

Hi berak and boaz, you both gave me the right hint, thank you very much!

This code is working now:

FIRGB16* bits = (FIRGB16)FreeImage_GetBits(rawImage); size_t step = FreeImage_GetPitch(rawImage); cv::Mat preview(rows, cols, CV_16UC3, (void)bits, step);

Hi berak and boaz, you both gave me the right hint, thank you very much!

This code is working now:

FIRGB16* bits = (FIRGB16)FreeImage_GetBits(rawImage);
(FIRGB16*)FreeImage_GetBits(rawImage);
size_t step = FreeImage_GetPitch(rawImage);
cv::Mat preview(rows, cols, CV_16UC3, (void)bits, step);

(void*)bits, step);