From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

i want to convert my greyscale image into binary using niblack method through vision assistant.but i am getting red color putput.is it converted in binary?what is the error?please guide

Hi,

When we do a thresholding in LABVIEW, the pixels values are 0 or 1. The image shown in red and black is to distincly show the user that there are two components.

However you won't be able view the image like that outside LABVIEW. To view is in other programs, you need to make the values as 0 and 255 (B and W). For that you can use lookup table with equalize opton or if you want to use a low level threshold api there is a replace terminal.

This link explains the same.

 

Hope this helps!

Vision Assisstant

0 Kudos
Message 2 of 2
(2,454 Views)