02-05-2012 12:58 AM
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?
Solved! Go to Solution.
02-05-2012 03:15 PM
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
02-05-2012 08:15 PM
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
02-06-2012 05:27 AM
Thanks toto26 and Bruce Ammons I will try it