Raw Image File Structure When Using a microEnable 5 marathon Frame Grabber#
If you want to open the RAW image saved in microDisplay using the microEnable 5 marathon frame grabber with some image viewer application, you will need to know certain information about the layout of the image file, including the size of the image and the offset to the beginning of the image data.
There is a 16 bytes header followed by the image data for the mentioned frame grabber. The microEnable 5 marathon outputs color in the order BGR:
N = 0 to N = [ height * width ] - 1
For example, with 16 bits per color the data looks as follows:
|[8–11]||Bits per pixel|
|[12–15]||Conversion factor for bytes: rounded down ((bits + 7) / 8)|