Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Question of transfer image type?

I am using IMAQ Vision for Measurement studio in Visual Basic and I need use autothreshold function to handle my image. But the image type is signed 16-bit. So, how do I transfer image type from 16-bit to 8-bit on no serious distortion condition?
0 Kudos
Message 1 of 2
(3,101 Views)
I wrote a quick VB example that should do the trick. It dynamically converts a signed 16 bit image (-32768 to 32767) into an unsigned 8 bit image (0 to 255). Let me know if you have any questions.

Kyle V
Message 2 of 2
(3,101 Views)