Hi I want to permute the image first column wise then row wise with specific values. The code I have written gives correct answer with column permutation but gives an error for row permutation .
I1=imread('lina512.bmp');I2=imresize(I1,[8 8]);figure;imshow(I2)I=I2(:,:,1);figure;imshow(I) csm = @(I,Col) circshift(I(:,Col),[3 1-Col]); % Arbitrary Matrix
callcsm = @(I) csm(I, 1:size(I,2)); HH1 = callcsm(I);%row shift
csm = @(row,I) circshift(I(row,:),[1-row,3]); % Arbitrary Matrixcallcsm = @(I) csm(I, 1:size(I,2));HH = callcsm(I);error in row shiftindex exceed matrix dimension
Best Answer