Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I split a 16-bit image?

I have a driver for a HDRC camera and a program for the production of Avi files. The image from the camera is 10bit, but Avi works only for 8-bit grayscale. I want to split a 16-bit image into two 8-bit images, so I don't lose data. Who can help me?
0 Kudos
Message 1 of 2
(3,047 Views)
For each image, you will need to make a copy. Convert one to 8 bits with no shift, and convert the other to 8 bits with an 8 bit shift.

The only problem with this is neither image will look good. Instead, I would just do a 2 bit shift on the original image for the avi, and save the original 16 bit image in PNG format.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 2
(3,047 Views)