Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

is there a way to save/write binary image

Solved!
Go to solution

I'd like to save several thresholded image (binary)...is there a way to do that?

 

thanks,

0 Kudos
Message 1 of 2
(3,412 Views)
Solution
Accepted by topic author ju627

Hi,

 

When you threshold an image, the default replace value for the thresholded pixels is 1. If you save the image, and reopen it later, (or with another software), you'll see a black image, unless you display it with a binary palette.

You can either specify a replace value of say 255 when you threshold the image, or equalize it with IMAQ Equalize prior to saving it.

You can then use the standard VI to save the image (IMAQ Write File 2).

 

Christophe

Message 2 of 2
(3,403 Views)