Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

how do i match a pattern and extract it from an image

Using IMAQ for Labview.
I need to match a pattern in an image, and then either crop the image such that all that is left is the area of the pattern, or extract the area of the pattern and save it to a new image file. I am struggling to convert the "pattern match" data into data which may be used to describe a ROI to extract the area of interest
Thanks
Mike
0 Kudos
Message 1 of 3
(3,320 Views)
Mike. I've created a quick VI that may do want you want. The only problem arises when a pattern is rotated and you try to extract it. Since you can't build an image that isn't rectangular, I had to extract the rectangle that surrounds the pattern.
Please let me know if you have any other questions.

Kyle V
Applications Engineer
National Instruments
www.ni.com/ask
0 Kudos
Message 2 of 3
(3,320 Views)
Perfect.
Cheers,
Mike
0 Kudos
Message 3 of 3
(3,320 Views)