Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to fill hole effectively?

Hi everyone. I'm trying to do particle analysis. however, after thresholding, the particles got holes inside them. i've tried to use IMAQ FillHole befor morph, however, the image turns all black. i really hope that the holes can be filled, so that i can morph the particles without losing the information (if there is holes, we cannot apply morph too many times, else, we will lose the information). Thanks in advance! Regards.
0 Kudos
Message 1 of 4
(3,893 Views)

Most likely the Fill Holes routine converts the image to values of 0 and 1.  If you change the display palette to binary, the objects will be red.  Binary Morph will work fine on this image.

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 4
(3,883 Views)

thanx for your reply. i already convert my image to binary using autoBthreshold, with method inter-class variance (otsu thesholding). you can see a simplified verssion of my program in the attachment. are they different from what you said?

 

thank you,

regards,

sam.

0 Kudos
Message 3 of 4
(3,866 Views)

sorry no attachment in prev reply. this is

0 Kudos
Message 4 of 4
(3,864 Views)