LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how greyscale image can convert into binary image?

i have 8 bit grey scale image.how i can get binary image?

0 Kudos
Message 1 of 18
(4,911 Views)

If you have NI Vision, you do this.

 

Without NI Vision, you can convert the image to a 2D array and perform a threshold on the array.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 2 of 18
(4,901 Views)

in imaq threshold what is range and replace value mean?

0 Kudos
Message 3 of 18
(4,894 Views)

Well how do you expect to convert to a binary image? What dictates black? What dictates white? So you want black, or do you want some grayish color? You need to set parameters that convert an image that has too much information down to an image with very basic information.

 

Read the help file.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 4 of 18
(4,890 Views)

i mean to say that suppose i have 8 bit greyscale image than in what we generally do is set some value suppose it is 150.so above 150 all pixel will white and below it will be black.so it will convert in binary image.is that possible here?

0 Kudos
Message 5 of 18
(4,879 Views)

Yes

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 6 of 18
(4,873 Views)

ok..now i  want to do thresholding with value 150 on a 8 bit grey scale value so here what is the range and replace value?

0 Kudos
Message 7 of 18
(4,867 Views)

From the help file:

 

/images/reference/en-XX/help/370281P-01/cnclst.gif

Range is a cluster specifying the threshold range.

/images/reference/en-XX/help/370281P-01/csgl.gif

Lower value is the lowest pixel value used during a threshold. The default is 128.

/images/reference/en-XX/help/370281P-01/csgl.gif

Upper value is the highest pixel value used during a threshold. The default is 255.

 

/images/reference/en-XX/help/370281P-01/csgl.gif

Replace Value is the value used to replace pixels between the Lower value and Upper value. This operation requires that Keep/Replace Value (Replace) is TRUE.

 

So what do you think you should use for the range and replace values?

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 8 of 18
(4,850 Views)

i know this already.but cant understand the replace value and range phenomena.in thresholding why there is a range?.

0 Kudos
Message 9 of 18
(4,836 Views)

suppose my range is 128 to 255 and my replace value is 170.than all the value between 128 to 255 will become 170.than what happens for the range between 0 to 128? 

0 Kudos
Message 10 of 18
(4,823 Views)