Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Java intersect, merge Rect -s

Hi all,

in my application i need to check for intersection and merge the rectangles. In the API of Rect java-class there's some instructions showing how to intersection and merge, as seen:

rect = rect1 & rect2 (rectangle intersection)
rect = rect1 | rect2 (minimum area rectangle containing rect2 and rect3 )

I did try in Eclipse, Java but it's failed:

The operator & is undefined for the argument type(s) org.opencv.core.Rect, org.opencv.core.Rect

Thanks for any help!