Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the data format of the image buffer from a NI-IMAQ 1394 acquisition?

I am acquiring a framebuffer which I desire to process using my own code.
The configuration is:
Set ATTR_VIDEO_FORMAT 1
Set ATTR_VIDEO_MODE 3
Results in
Get ATTR_IMAGE_WIDTH == 1024
Get ATTR_IMAGE_HEIGHT == 768
Get ATTR_IMAGE_REP == COLORID_YUV422
Get ATTR_BYTES_PER_PIXEL == 4

What is the data layout of this framebuffer?
0 Kudos
Message 1 of 2
(3,241 Views)
Robert,

I'm not sure if I understand exactly what you are asking here, but you can use the Get Buffer function call to access the image data and it will coorespond to the image type that you acquired (8 bit integer for monochrome and 32 bit for RGB).

Let me know if this doesn't answer your question.

Regards,
Andy Bell
Application Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,241 Views)