필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
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.

채택된 답변

Thorsten
Thorsten 2013년 2월 12일
편집: Thorsten 2013년 2월 12일
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
Cesar
Cesar 2013년 2월 12일
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 2013년 2월 13일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

제품

Community Treasure Hunt

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

Start Hunting!

Translated by