Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

create AVI with 8 bit image

Hello,

is it possible to create an AVI file whose image type is 8 bits ?
I tried to create an AVI with AVI write using 8 bit image but it seems that the AVI write function makes the AVI file but cast the images to RGB.
thank you !
0 Kudos
Message 1 of 2
(3,168 Views)
Hello Vanessa,

You want to create an AVI file whose image type is 8 bits :
The current implementation of AVI Write saves 8-bit gray-scale images as 32-bit color images. Each of the red, green, and blue planes are given the same value, creating an image that is gray-scale. This causes the file size to be much larger than expected, and the image being read back from an AVI file to be in the RGB format.
So, you can create it but it will be saved much larger than you expect.

Sanaa TAZI
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,168 Views)