Clear Filters
Clear Filters

How to paste or add an image of smaller size to a blank frame of bigger size

1 view (last 30 days)
How to paste or add an image to reduced size into a blank frame of a bigger size. By example the blank frame can be 300 X 300 and the other image can be resized 50 X 75 and pasted to the blank frame.

Accepted Answer

Thorsten
Thorsten on 12 Feb 2013
Edited: Thorsten on 12 Feb 2013
I = imread('cameraman.tif');
I = im2double(imresize(I, 0.2));
E = ones(300);
E([1:size(I,1)] + 40, [1:size(I,2)] + 120) = I;
imshow(E)
  6 Comments
Cesar
Cesar on 12 Feb 2013
You seem pretty good. Can you do the following? Create a triangular image with height of 200 pixels and the base of 200 pixels and color the image in any two colors.
Cesar
Cesar on 13 Feb 2013
Did you see my last request? Create a triangular image with height of 200 pixels and the base of 200 pixels and color the image in any two colors.

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!