Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The best test would be bitwise_and for any positions. If the output area equals the foreground area, you have certainty.

If background is concave, foreground corners could test inside while overlapping contour. Is your test so robust as to fit secondary transforms such as offset and rotation, or size mismatch? Is it then fast enough?