imshow : add spacing between two images

5 vues (au cours des 30 derniers jours)
Moritz P.
Moritz P. le 27 Août 2015
Commenté : Image Analyst le 25 Fév 2021
Hi, is there a way to add spacing between two images so that they are farther apart?
figure;
imshow([A B],[]);
colormap(winter);
  2 commentaires
K P RAVIKUMAR
K P RAVIKUMAR le 25 Fév 2021
How to provide spacing between the images in monage for multiple images
Image Analyst
Image Analyst le 25 Fév 2021
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.

Connectez-vous pour commenter.

Réponses (1)

Image Analyst
Image Analyst le 27 Août 2015
Try making a band of zeros
spacer = zeros(rows, columns, 'uint8');
wideMatrix = [A, spacer, B];

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by