Ask Your Question
0

Difference between submat and Rect?

asked 2016-09-27 17:04:41 -0600

Shulz gravatar image

updated 2016-09-27 19:39:58 -0600

berak gravatar image

How does submat perform in comparison to rect? In what way can we use them differently?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2016-09-27 17:41:43 -0600

Tetragramm gravatar image

updated 2016-09-27 17:42:47 -0600

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.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-09-27 17:04:41 -0600

Seen: 1,220 times

Last updated: Sep 27 '16