08-20-2012 03:29 PM - edited 08-20-2012 03:36 PM
I'm looking for an efficient way to remove particles from my binary image that are overlapping.
Image 1 is the current thresholded frame
Image 2 are the particles that are bad
Image 3 is the combination of image 1 plus image 2
I want to remove the particles that are "overlapping"
Any efficient ideas?
Thanks,
Branson
PS Images are in binary form, so you need to open them in IMAQ to see them.
Red = binary value 1
Green = binary value 2
Blue = binary value 3
Solved! Go to Solution.
08-20-2012 04:01 PM
Do you mean you want to remove the red particles that are touching green particles?
Bruce
08-21-2012 05:38 AM
Hi,
I guess you are trying to do a binary reconstruction, have a look at the IMAQ Binary Morphology Reconstruction: http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_binarymorphology_reconstruction/
Provide the function with your "bad image" as the marker image.
Hope this helps
Regards
08-21-2012 06:26 AM
I want to keep the particles that are only red, and I want to remove the particles that have green or blue.
08-21-2012 07:47 AM
Thanks toto69!
IMAQ Binary Morphological Reconstruction
Wired Image 1 to Image Source
Wired Image 2 to Image Marker
Result was any particle from image 1 that touches the particles in image 2.
From there, I IMAQ Or'd Image 2 with the Result,
and then subtracted that result from my original Image 1.
Awesome!!