Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to reshape a mat like (1,3,height,width) to (height,width,3)?

I am using opencv4.1 under windows 7x64 with visual studio 2015 I am implementing code to one in C++. But it makes me confused that how to do this

out = out.reshape(3, out.shape[2], out.shape[3])
out = out.transpose(1, 2, 0)

in opencv C++ version?