In Matlab, I am trying to crop an image and be able to manipulate in some way (I adjusted contrast) and show change in formatting as its displayed beside the original image (by making it turn more and more blue). The code runs successfully, but it seems to already have made the cropped image as blue as the for loop would take it. How can I edit the code so that as the original is displayed beside the cropped, the cropped image is showing the change in formatting of turning more and more blue? Here's what I have so far: I = imread('peppers.png'); I2 = imcrop(I); I3 = imadjust(I
It didn't fit completely, here's the whole code: ------- I = imread('peppers.png'); I2 = imcrop(I); I3 = imadjust(I2,[.2 .3 0; .6 .7 1],[]); subplot(1,2,1), subimage(I); for i = 1:0.1:7 I3(:,:,3) = I3(:,:,3) + i; subplot(1,2,2), subimage(I3) end ------- Now, to understand what's meant by becoming more and more blue, please run: ------ img = imread('peppers.png'); for i = 1:0.1:7 figure(1) img(:,:,3) = img(:,:,3) + i; imshow(img) end ------
Join our real-time social learning platform and learn together with your friends!