Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to exclude particles that touch color image edges ?

Solved!
Go to solution

Hello everybody,

I am using Labview 2011 and the Vision assistant 2011. I have a Basler linescan camera with NI PCIe 1427 card. I am trying to create color pellet sorter application on a conveyor belt. I acquired color images as attached.

I want to exclude any particle that touches the edges of the color images by IMAQ RejectBorder and locate color pellet by IMAQ ColorLocation. But IMAQ  RejectBorder only apply for grayscale images and can’t distinguish color among grayscale images.

How can I do this?

Download All
0 Kudos
Message 1 of 4
(2,935 Views)

Hello,

Well, in fact, IMAQ RejectBorder works on binary images, so you have to threshold your image first. You can use IMAQ color threshold before using the reject border.

Regards

NTA_LabView_certified_Developper.jpg
0 Kudos
Message 2 of 4
(2,927 Views)
Solution
Accepted by topic author XuanThuy

Here's a more complete answer:  Convert your color image to binary using thresholding.  You might need an intermediate conversion to grayscale.  Once you have the binary image, use RejectBorder.  Now use this as a mask on the original color image to retain only the color particles that don't touch the boundary.

 

Bruce

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

Thanks toto26 and Bruce Ammons I will try it

0 Kudos
Message 4 of 4
(2,901 Views)