Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how can i reshape a Mat 2D to vector<vector<mat>>

i would like to convert a Mat whose dimensions are [2000][256] and i want to convert this to a vector<vector<mat>> with dimensions [256][20][10][10]

how can i reshape a Mat 2D to vector<vector<mat>>

i would like to convert a Mat whose dimensions are [2000][256] and i want to convert this to a vector<vector<mat>> with dimensions [256][20][10][10][256][20][10][10]. In matlab it is posible to do reshape(Mat2d, 10, 10, 20, 256), i would like to do the same