Ask Your Question
0

How to change the dimension of the Mat so that previous data remain?

asked 2013-07-12 10:44:40 -0600

updated 2013-07-13 13:59:28 -0600

Mahdi gravatar image

I want to change the dimension of Mat dynamically but remain my previous data in Mat when create the Mat again clear precious data.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-07-12 11:11:20 -0600

berak gravatar image
mat.push_back(new_data);
mat.reshape(0,num_new_rows);
edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-07-12 10:44:40 -0600

Seen: 238 times

Last updated: Jul 13 '13