Dear Sir / Madam
I am in the process of implementing a Linux Astronomical Image Capture application which supports many cameras. I have the ZWO ASI120MC working perfectly in 8bit mode (RAW8) but am having problems with extracting buffers which take advantage of the 12 bit ADC.
At first, I assumed that I would need to pass in a 16-bit unsigned integer into ASIGetVideoData() together with a buffer size parameter. However, I now see that I need to pass in an 8-bit unsigned integer (aka unsigned char) with a buffer size parameter of width * height * 2.
My question is: How is the data formatted in the resulting image buffer? For example, is the data formatted as follows:
// First pixel brightness value: buffer
// corresponding pixel brightness value: buffer
// 16 bit value
uint16_t px = buffer * buffer;
Or, it it as follows:
// First pixel brightness value: buffer
// corresponding pixel brightness value: buffer
// 16 bit value
uint16_t px = buffer * buffer;
If none of the above I would be grateful if you would explain how I obtain pixel values greater than 8 bits (256) from your function ASIGetVideoData().
Another question, does your SDK scale the values from the 12 bit ADC into the full range of 16-bits. That is, 0 through to 65535?
I am not using OpenCV in my project.
My thanks in advance
Regards
Nikki