Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

after IMAQ threshold.vi,GRAYSCALE U8 type image turns into a completely black image.

Solved!
Go to solution
i want to threshold the u8 image after equalize.vi,but the result is the image turns into a completely black image.before equalize.vi,i use histogram.vi and the interval is (0,0).where is the wrong?i really appreciate your help.
0 Kudos
Message 1 of 8
(5,001 Views)
Most likely you have not defined the buffers correctly. Right click the image go to pallete and view as Grayscale. Does this show the image?
0 Kudos
Message 2 of 8
(4,994 Views)
you are the one who always help me,really thank you muks.when i change it to binary,i can see the image.the initial choice is grayscale.
0 Kudos
Message 3 of 8
(4,986 Views)
Can you post a screenshot of your vi?
0 Kudos
Message 4 of 8
(4,965 Views)
Solution
Accepted by topic author tuming

Unless you input a value into the 'Replace Value' input of IMAQ Threshold, your output pixel values will be 0 and 1.  In a grayscale image, you will not be able to see anything.  Try setting the 'Replace Value' input to 255 and see if the data shows up.  Below is a note from the help file on this function.

 

Note  Use a binary palette when you plan to visualize an image to which a threshold has been applied in Replace mode. However, which palette to use for visualization depends on the value of Replace Value. For example, the visualization of a threshold image could be performed with a gray palette. However, in this case it is advised that you use a replacement value of 255 (white) to see the threshold image better.

Randall Pursley
Message 5 of 8
(4,957 Views)
thank you rpursley8,the problem was solved with your help.really thank you.
0 Kudos
Message 6 of 8
(4,952 Views)
according to rpursley8's guidance,the problem is solved.thank you muks.
0 Kudos
Message 7 of 8
(4,950 Views)

Your welcome.  This is a common mistake.  I do it about every other time I use this function.

 

 

Randall Pursley
0 Kudos
Message 8 of 8
(4,945 Views)