imshow : add spacing between two images

조회 수: 5 (최근 30일)
Moritz P.
Moritz P. 2015년 8월 27일
댓글: Image Analyst 2021년 2월 25일
Hi, is there a way to add spacing between two images so that they are farther apart?
figure;
imshow([A B],[]);
colormap(winter);
  댓글 수: 2
K P RAVIKUMAR
K P RAVIKUMAR 2021년 2월 25일
How to provide spacing between the images in monage for multiple images
Image Analyst
Image Analyst 2021년 2월 25일
Basically the same way as in my Answer below. You just need to do it in both directions. There is no montage option for this I don't believe, so if you want it, you'll have to do it manually.

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

답변 (1개)

Image Analyst
Image Analyst 2015년 8월 27일
Try making a band of zeros
spacer = zeros(rows, columns, 'uint8');
wideMatrix = [A, spacer, B];

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by