open an image in another image

1 view (last 30 days)
tomy gn
tomy gn on 2 Jun 2018
Commented: tomy gn on 2 Jun 2018
hi. I want to open an image in another image. How should I do this? .like this pic

Accepted Answer

Anton Semechko
Anton Semechko on 2 Jun 2018
Here is an example:
im1=imread('peppers.png');
im2=imread('football.jpg');
im3=im1;
im3(1:size(im2,1),1:size(im2,2),:)=im2;
figure('color','w')
imshow(im3)

More Answers (0)

Categories

Find more on Read, Write, and Modify Image in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!