Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Particle filter for grayscale objects shall not deliver binary images.

Hi freaks,

I have grayscale images with a small number of objects of various sizes. I apply IMAQ particle filter 2.vi in order to keep only those particles which exceed a certain limit for their area. The vi works well but unfortunately it returns a binary image. However, I need the grayscale information of the particles which survived the filtering. Any idea how I can keep the big grayscale objects and reject the small ones without transforming the big ones to binary format?

Thanks a lot in advance,
Peter
0 Kudos
Message 1 of 4
(3,330 Views)
Peter -

One idea that springs to mind is to take the binary output of IMAQ Particle Filter 2 and use it to mask the original image (with the IMAQ Mask VI) to only keep those particles in the original image.

Greg Stoll
IMAQ R&D
National Instruments
Greg Stoll
LabVIEW R&D
0 Kudos
Message 2 of 4
(3,321 Views)
Use the filtered binary image as a mask on your original image using the Mask function. If I understand you correctly, that should be exactly what you want.

Kevin
0 Kudos
Message 3 of 4
(3,319 Views)
Kevin, Greg,

your answers helped. Thank you!

Peter
0 Kudos
Message 4 of 4
(3,313 Views)