I am trying use this code,but it crop each row(up and bottom). How to crop it trough each 10 column left and right?
clc;%%read the image
IMG = 'laluan.jpg';I = imread(IMG);IJ = rgb2gray(I);IK = double(IJ);%crop 10 pixels off each side
IK = IK(50:end-10, 50: end-10);originalImage = uint8(IK);subplot (221);imshow(I);subplot(222);imshow(originalImage);
Best Answer