Ask Your Question
0

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

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

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

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 -0500

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

Question Tools

Stats

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

Seen: 138 times

Last updated: Jul 13 '13