numpy with python: convert 3d array to 2d,"img.transpose(2, 0, 1).reshape(3, -1)"