%%Cropping column off 25%
file=imread('Airplane.tiff'); CR1=imcrop(file,[128 0 512 512]);[x,y]=size(CR1);CRP1=zeros(M,N);for i=1:x for j=1:y CRP1(i,j+127)=CR1(i,j); endendstep = step + 1;figure(step); imshow(uint8(CRP1));title('The Watermarked Image with Croping column off 25%');imwrite(uint8(CRP1),'24.tiff','tiff');
if I run the code the cropping result is a black color, how to change it into a white color? -Thanks for the help-
Best Answer