I want to determine if two unfilled rectangles are overlapping. How can I do this?
The rectangles are defined initially by being drawn onto an IMAQ Vision window, from which I have the coordinates of the top left and bottom right corners. These are subsequently converted into overlays.
My thoughts were
1. Convert rectangles into separate pixel-sized points (how?). They are intersecting if there are points with common co-ordinates.
2. Or, turn the rectangle into a contour (how?) and use Get Contour Info. This will also provide the pixel co-ordinates and I can identify if they are common for the two rectangles.
3. Perform an Intersection of the two rectangles (how?) and compare the the output with the inputs.
Any ideas?