Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to convert 3d array to 4d array using Mat::reshape

Hi, I have 3d RGB array I need to convert it to 4d RGBA array using reshape how to do that kindly help me. Basically x = np.reshape(x, (1,64,64,3)) this python operation i have to do in c++.