Put an image on another image
조회 수: 2 (최근 30일)
이전 댓글 표시
May you please help me how can I put an image on another image and display a single image?
댓글 수: 0
답변 (1개)
Walter Roberson
2018년 10월 27일
Have a look at image(), which permits you to pass data coordinates for lower left and upper right. Note that the coordinates are for the centers of pixels.
Example:
IM1 = randi([0 255], 60, 80, 3, 'uint8');
IM2 = checkerboard(4);
image(IM1);
hold on;
image([5 5], [36 36], IM2, 'CDataMapping', 'scaled'); colormap(gray(64));
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!