12-13-2010 02:43 PM
Hi,
I am working on a program that detects four edges, and finds the four corners where these lines intersect. I want to define an ROI from these four points, but am having a hard time finding the right tool. When I use the rectangle to ROI (Polygon) tool, the lines don't end up matching the edges because it only takes in the upper left and lower right corners along with a rotation, and when it rotates, the ROI rotates off of the corners I input. How do I simply create an ROI based on four corners? It seems like this should be a very simple task, but I can't figure it out.
Thanks,
Paul
Solved! Go to Solution.
12-14-2010 11:25 AM
You have to create a Polygon ROI. Unfortunately, there is no high level VI that lets you create it by just specifying the points, so you have to manually build the ROI descriptor with your array of points.
See attached example on how to do it. Hope this helps.
Best Regards,
-Christophe
12-14-2010 12:02 PM
Thank you for your reply, Christoph. Unfortunately, I am running labview 8.6 and was unable to open your example file.
12-14-2010 12:53 PM
Christophe's example should be exactly what you need. I went ahead and saved it so that you can use it in LabVIEW 8.6.
Paul
12-14-2010 01:18 PM
Excellent. Worked perfectly. Thank you Christophe and Paul.