Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use IMAQ Inverse?

When I use the function IMAQ Inverse after IMAQ Treshold I don't get the right result just a red window instead of the inverse.
What can be the reason for that?

Hopefully,
Birgit
0 Kudos
Message 1 of 2
(3,937 Views)
Birgit,

When you threshold an image, the standard result is an image that only contains zeros and ones. If you display this using a grayscale palette, it looks black. The best palette to use is binary.

If you invert a binary image, all the values will be 255 or 254. Using most palettes, these will look the same, except for the binary palette.

The easiest way might be to set up your threshold to include the inversion - darker areas turn white, while lighter areas turn black. You can also change it so the output is zero or 255, which will look correct using any palette.

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