11-02-2009 07:56 AM
Greetings,
I've a certain problem here. We're working on a project for school.
Now we have a reactangle mask on a image. We he have devided the image in 3 parts left, top, right...
http://forums.ni.com/ni/attachments/ni/200/25286/1/mask.PNG
Now in the area's we detect a edge. Now we want to measure the distance from the mask to that certain detected edge. Now the problem is that the distance vi needs a reactangle as input and not a line for example.
What is the best approach (solution :P) to get what we need?
I've added our vi to this message. @the right side we use the distance vi...
11-02-2009 09:33 AM
If you have an edge, it is easy to measure the distance to another line. You just need to decide if you should use the min, max, or center distance. Unless the lines are parallel, the distances will all be different.
You will probably find the tools you need to do the measurement in the geometry section of the vision palette.
You shouldn't expect too detailed of a solution from the forum. After all, it is your homework, not ours.
Bruce
11-11-2009 03:49 PM