06-29-2010 03:19 PM
I am trying to threshold an image inside a while loop so the user can fine tune their threshold values. The threshold values are being iterated correctly but when the image passes through its 2nd iteration the image goes black or disappears. Any suggestions? Thanks.
Alex
06-30-2010 05:11 AM
Without seeing the screen shot of your vi I can only guess.
Have you connected a Imaq create to img dst of the imaq threshold? Have you put this out of the loop? What are all the processing that you are doing after this?
06-30-2010 05:16 AM
try with shift registers for image
06-30-2010 05:38 AM
How will shift register help in an image threshold?
06-30-2010 01:21 PM
We are currently using shift registers but its not working. The value is changed correctly but the image does not change. In fact the image either completely disappears or it is thresholded entirely black. I have attached a ss of the loop.
06-30-2010 03:16 PM
Hello,
If you right-click your image display and then select Palette, what mode is it set to?
-Zach
06-30-2010 03:58 PM
ladouceuraj a écrit :
We are currently using shift registers but its not working. The value is changed correctly but the image does not change. In fact the image either completely disappears or it is thresholded entirely black. I have attached a ss of the loop.
According to the diagram, this behaviour is normal : once the image has been thresholded, the original data are replaced with the new [0, 1] values. Nothing left for another run.
Define a second image and wire it to the "destination image" input of the threshold function.
BTW, a shift register is completely useless when working with images, since the wire contains a reference to the image structure, not the data itself.
06-30-2010 11:53 PM
Do not use a shift register as cc has suggested. Just connect the proper buffers properly and you should see the desired image. (Img dst)
07-01-2010 11:00 AM
I have removed the shift registers but I am confused about the destination image. Should i connect the same image wire leading into the while loop to the destination image port on threshold? I tried this and ended up with the same results.
chilly charly - I understand that the values are being replaced to binary. Is there a way to essentially start over with the original image leading into the loop?
07-02-2010 01:47 AM
By destination It means connect an "imaq create" to the img dst of the threshold.