LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Realtime thresholding

I have written a VI which gets in images from a camera, enhances the image and thresholds and displays it. I want to be able to see both the image being read from the camera with the thresholded image at the same time. Whilst this all this is going on I wanted to change the threshold value using sliders.

 

The VI I have written doesn't seem to want to display my orginal image, the thresholded image seems to work, but not the orginal image (it's just black).

 

I have attached my VI, is there anything obvious that I am doing wrong?

 

Thanks,

 

Jack 

0 Kudos
Message 1 of 4
(2,818 Views)
This time with my VI
0 Kudos
Message 2 of 4
(2,817 Views)

Ok I think I might have just found the solution.

 

I used an IMAQ create block, see VI, but it still doesn't work perfectly.

0 Kudos
Message 3 of 4
(2,814 Views)

bluefocs,

 

The problem that you have kind of "race conditions" in your VI. You should connect Image Dst of filter to another image. Otherwise yoiu have filtered orginal image, and show the same image in both displays. Try to switch your source display to binary palette too - you will be surprised 😉

Hopefully attached example will explain this:

 

 

 

Andrey.

Message Edited by Andrey Dmitriev on 02-11-2009 04:09 PM
Download All
Message 4 of 4
(2,802 Views)