Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What is a Mat with 0 rows used for?

I see in some cases people are initializing a Mat with zero rows. i.e.:

Mat labels(0,1,CV32FC1);

This creates a labels Mat with 0 rows and 1 col. It doesn't look like it can store any data since it would have no 'cells', so to speak. How is this useful? Can this store data?