Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove Particles that overlap?

Solved!
Go to solution

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

image 3 in color

 

 

0 Kudos
Message 1 of 5
(3,659 Views)

Do you mean you want to remove the red particles that are touching green particles?

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 5
(3,649 Views)
Solution
Accepted by Branson

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

Message 3 of 5
(3,641 Views)

I want to keep the particles that are only red, and I want to remove the particles that have green or blue.

0 Kudos
Message 4 of 5
(3,637 Views)

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,

Image 4 - Reconstructed

 

 

 

and then subtracted that result from my original Image 1.

Image 5 - Desired Result.PNG

 

Awesome!!

 

 

0 Kudos
Message 5 of 5
(3,632 Views)