Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Reshape a matrix

I have an image and I need to reshape it as a 3D matrix. Does any function exist to do it? I need to have a 3d matrix by rows-by-columns-by channels to obtain 3 differents components thanks to the differents channels

click to hide/show revision 2
retagged

updated 2013-11-26 02:51:48 -0600

berak gravatar image

Reshape a matrix

I have an image and I need to reshape it as a 3D matrix. Does any function exist to do it? I need to have a 3d matrix by rows-by-columns-by channels to obtain 3 differents components thanks to the differents channels