Introduction - If you have any usage issues, please Google them yourself
clc
clear all
i=imread( Winter.jpg )
i=rgb2gray(i)
figure(1)
imshow(i)
imwrite(i, Copy.jpg )
j=imread( Sunset.jpg )
j=rgb2gray(j)
jRect=j(100:200,100:200,:)
figure(2)
imshow(jRect)
for x= 100:200
for y= 100:200
i(x,y,:)=j(x,y,:)
end
end
figure(3)
imshow(i)