Ask Your Question
0

opencv reshape like matlab

asked Nov 5 '12

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)

Preview: (hide)

1 answer

Sort by » oldest newest most voted
-1

answered Nov 5 '12

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

Preview: (hide)

Question Tools

Stats

Asked: Nov 5 '12

Seen: 829 times

Last updated: Nov 05 '12