Ask Your Question
0

opencv reshape like matlab

asked 2012-11-05 11:16:45 -0600

Hyon Lim gravatar image

Hi. Let assume that there is a vector.

cv::Mat v(9,1,CV_64F);

I would like to change this to 3x3 matrix (any order is okay). But, v.reshape() does not help anything!

I think documentation should note about reshaping (not the channel reshaping)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
-1

answered 2012-11-05 11:38:49 -0600

cv::Mat v(9,1,CV_64FC1); v.reshape(1,3);

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-11-05 11:16:45 -0600

Seen: 821 times

Last updated: Nov 05 '12