Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

label missing first two objects

The Imaq Label seems to miss the first two objects ? Has anyone else noticed this ? Is there a workaround ?

best regards

Edmund
0 Kudos
Message 1 of 5
(3,624 Views)
I haven't seen that.
Can you please attach small SubVI and an image for explaining?
0 Kudos
Message 2 of 5
(3,621 Views)
The problem can be reproduced with NI Vision Assistant as well. It has to do with the image content. I have attached the image file where I noticed the problem. Two objects at the upper border of the image disappear if one selects label objects (You have to convert the image to 8 Bit and then to 16 Bit before appliing Imaq Label). If I select only a part of the image with the image mask everything works well, so it seems to depend on the number of objects. It seems that the problem is related to the 16Bit Version of label objects, but I have more than 255 objects.

best regards

Edmund
0 Kudos
Message 3 of 5
(3,601 Views)
I believe the problem is merely an issue of display. Displaying a 16-bit image compresses several grayscale values into one display value. For this image, it appears that the first two particles (with gray values 1 and 2) are being *displayed* at grayscale value 0.

Kevin
0 Kudos
Message 4 of 5
(3,586 Views)
Correct, after I set a threshold with a range starting from 1 all particels where visible. I changed the LabView-program in a similar way.

thanks for your help

Edmund
0 Kudos
Message 5 of 5
(3,577 Views)