LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Thresholding

Hello, 

 

I have an image like the attached file. 

I would like to convert this image to the binary values (1, 0). I will use this to compare some similar images.

Can any one help with the availability to apply the thresholding fir this image!

0 Kudos
Message 1 of 9
(1,488 Views)

Without more details it's impossible to know what kind of threshold you would need and what for.

 

And i'm not opening a file named image.txt.rar...

0 Kudos
Message 2 of 9
(1,477 Views)

Simply, 

I try to improve this image quality.

I used some numerical processes to do so, Therefore, I get a few outputs of the improved images. 

Now, I want to compare between those results. 

I read online one of the analysis the images is the thresholder

the link is attached. 

I would like to apply this thresholding method for my images.

I am also attached the image again as jpg file. 

required way 

0 Kudos
Message 3 of 9
(1,463 Views)

It rather looks like you are trying to fulfill your homework assignment ...

 

 

at first, you need to get the data from the textfile to labview

 

e.g. like this

 

alexderjuengere_0-1628169127317.png

 

 

0 Kudos
Message 4 of 9
(1,442 Views)

Did you think the problem in how to read the data to the LabVIEW!!!

Did you read the questions before you put your reply!!

 

0 Kudos
Message 5 of 9
(1,415 Views)

@Khallod wrote:

Did you think the problem in how to read the data to the LabVIEW!!!

Did you read the questions before you put your reply!!

 

 you want to work iteratively on the image data, so in the first iteration, you have to get your data into labview.

if this is not a problem for you,

why do you bother us with an ill-formatted csv files?

 

 as the file size is considerably small, put the image data in a 2d array constant and upload as .vi 

 

 

furthermore, the algorithm you propose is using only one threshold.

but as your data is in a range from -0,000140141 to 0,000778049, you need at least 2 thresholds.

 

alexderjuengere_0-1628247183779.png

 

 

can the negative part be ignored?

0 Kudos
Message 6 of 9
(1,390 Views)

Yes, the negative values can be ignored

Simply, I put the data as a constant 2D array as the attached. 

0 Kudos
Message 7 of 9
(1,386 Views)

where have you got stuck?

 

convert the image to a range 0...255

calculate or choose the initial mean

and use in_range_and_coerce

to calculate the new images.

 

 

 

mean.gif

 

 

 

Message 8 of 9
(1,366 Views)

thresholding_konvergenz.png

0 Kudos
Message 9 of 9
(1,300 Views)