I am snapping 10-bit greyscale images. First I need to convert them in an array for which I use the IMAQ "ImageToArray" function. Second I need to convert the array back into an image wether bmp format or png format and I also want to display it.
The first part works: From my 10-bit greyscale image I get an array (I16-format) with a size of 768x576, in which each element has a value between 0 and 1023.
The second part is a problem, because I cannot find a function that converts 16-bit arrays in images. The pixmap function only allows to convert whether 1,4,8 or 24 bit arrays, but using the 24-bit connection of the function I have no possibility to set a certain colortable, since the function ignores the color-connection in that case.
I hope here is anybody who might help me. Thanks!