Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

defined mask

Hello all,
 
I'm not entirely sure whether or not what I need to be done is possible within LabVIEW, but it can't hurt to hear what you guys have to say.
 
I'm taking multiple images of a prism using multiple magnifications (1.3x, 2.5x, 4.0x, and 8.0x).  The shape of the compiled image is always the same but what changes is the ratio (obviously).  Rather than having to load multiple masks to fit each of the magnifications, I am wondering whether or not a mask can be created to fit a percentage ratio that is determined by the edges that differ from each mag after a threshold is performed.
 
Eh Smiley Indifferent, some clarification may be necessary...so if you have any suggestions or questions, please do not hesitate to come forward.
 
Thanks in advance!
0 Kudos
Message 1 of 4
(3,388 Views)

Hi Steve,

The result of the threshold operation is a binary image, cant this result itself be used as a mask for the original?

Jaidev

Senior Product Manager
National Instruments
0 Kudos
Message 2 of 4
(3,363 Views)

It could be but the image itself has a border around it that would throw off edge detection for the inner particle analysis.

At this point in time I am working with ideas of seperate, premade masks that are cumbersome in memory and slow down the process.

Another option I am working with is manually drawing using the polygon tool a certain, small distance from the actual edges which proves to be time consuming but very light in terms of memory use.

Any other ideas or suggestions are greatly appreciated.

Thanks

0 Kudos
Message 3 of 4
(3,346 Views)
Hello Steve,

You might also want to consider using some geometric matching algorithm to automate the process of creating the different masks.  Geometric matching is useful for distinct shapes, such as prisms, and geometric matching can find templates regardless of scaling of the template.  You may be able to use the returned position and orientation information for each returned template match instead of manually drawing polygons.  

Best Regards,
T. McCarty 
0 Kudos
Message 4 of 4
(3,334 Views)