취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

Threshold image inside loop

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

0 포인트
1/11 메시지
4,027 조회수

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?

0 포인트
2/11 메시지
4,020 조회수

try with shift registers for image

0 포인트
3/11 메시지
4,018 조회수

How will shift register help in an image threshold?

0 포인트
4/11 메시지
4,014 조회수

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.

0 포인트
5/11 메시지
4,003 조회수

Hello,

 

If you right-click your image display and then select Palette, what mode is it set to?

 

-Zach

0 포인트
6/11 메시지
3,995 조회수

 


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.

Chilly Charly    (aka CC)
0 포인트
7/11 메시지
3,991 조회수

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)

0 포인트
8/11 메시지
3,970 조회수

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? 

0 포인트
9/11 메시지
3,948 조회수

By destination It means connect an "imaq create" to the img dst of the threshold.

0 포인트
10/11 메시지
3,923 조회수