how to transpose an image in matlab code example
Example: matlab transpose image
% MATLAB
% swap rows and cols but keep the 3rd dimension intact.
permute(yourImg,[2 1 3]);
% MATLAB
% swap rows and cols but keep the 3rd dimension intact.
permute(yourImg,[2 1 3]);