Tablica 3D do Pythona tablicy 2D
#n x m x 3 is to be converted to 3 x (n*m),
img.transpose(2,0,1).reshape(3,-1)
Real Raccoon
#n x m x 3 is to be converted to 3 x (n*m),
img.transpose(2,0,1).reshape(3,-1)
img.transpose(2,0,1).reshape(3,-1)