Ask Your Question
0

What is a Mat with 0 rows used for?

asked 2014-03-13 13:32:22 -0500

ytham gravatar image

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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-03-16 19:28:55 -0500

ytham gravatar image

So, these matrices are not for displaying objects. Instead, they are used in the case when you want to use the Mat as a container object and push data into it.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-03-13 13:32:22 -0500

Seen: 115 times

Last updated: Mar 16 '14