Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

A Rect is just a box. X, Y, Width, Height. Nothing more.

A submat is a section of a Mat. You can choose which section by using a Rect, or a row range, or col range. But it is a Mat containing a pointer to the image data and all of that.

Try reading the documentation and tutorials. They're pretty good about explaining this basic stuff.

A Rect is just a box. X, Y, Width, Height. Nothing more.

A submat is a section of a Mat. You can choose which section by using a Rect, or a row range, or col range. But it is a Mat containing a pointer to the image data and all of that.