Difference between submat and Rect?
How does submat perform in comparison to rect? In what way can we use them differently?
How does submat perform in comparison to rect? In what way can we use them differently?
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.
Asked: 2016-09-27 17:04:41 -0600
Seen: 1,496 times
Last updated: Sep 27 '16
Unresolved inclusion in OpenCV+Android tutorial
How to convert Floating point image to 32-bit single-channel?
How to translate this to Java?
android: how to put a column into Mat
OpenCV Tutorial 1 - Add OpenCV on API 8
Running the OpenCV4Android application on my PC
Using OpenCV as a stress detector