I used numpy as transpose()
and also astype(np.double)
to the permute function in python but the real question is how i can get a median of every arrays in transposed matrix and make a medaian matrix of each array by itself, (the similar code in matlab is: sinogram=ImMatrix(:,:,6); that used for median function ) and i want it in python.
I have this code in matlab:
load('ImMatrix.mat');
ImMatrix = permute(ImMatrix,[2 1 3]);
sinogram=ImMatrix(:,:,6);
sinogram = im2double(sinogram);
that ImMatrix
file is a 160*320 uint8 matrix and I want transpose matrix
in Python.