03-01-2016 09:35 AM
i have 8 bit grey scale image.how i can get binary image?
03-01-2016 09:39 AM
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> ---'
03-01-2016 09:42 AM
in imaq threshold what is range and replace value mean?
03-01-2016 09:43 AM - edited 03-01-2016 09:45 AM
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.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
03-01-2016 09:48 AM
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?
03-01-2016 09:49 AM
Yes
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
03-01-2016 09:52 AM
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?
03-01-2016 10:02 AM
Range is a cluster specifying the threshold range.
|
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> ---'
03-01-2016 10:07 AM
i know this already.but cant understand the replace value and range phenomena.in thresholding why there is a range?.
03-01-2016 10:11 AM
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?