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.
2 | No.2 Revision |
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.