Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can any body tell me how to intialize MatOfRect object with MatOfRect Constructor taking Mat object as a parameter?

I want to store Mat object values in Rect object. To do that I tried to create MatOfRect object with Mat Object values. But it throws an Exception saying Incompatible Mat and then app stops. Can anybody help me to solve this?What am I doing wrong?

click to hide/show revision 2
retagged

updated 2016-04-19 00:59:13 -0600

berak gravatar image

Can any body tell me how to intialize MatOfRect object with MatOfRect Constructor taking Mat object as a parameter?

I want to store Mat object values in Rect object. To do that I tried to create MatOfRect object with Mat Object values. But it throws an Exception saying Incompatible Mat and then app stops. Can anybody help me to solve this?What am I doing wrong?