Multiple images in one image/figure

2 vues (au cours des 30 derniers jours)
Dries Weytjens
Dries Weytjens le 12 Avr 2017
Modifié(e) : KSSV le 12 Avr 2017
Hello everyone,
Allow me to concisely set the scene for my question. I am currently running a bunch of simulations that result in ternary composition diagrams using MATLAB. For the sake of comprehensiveness of the dataset I am making composites of images overlayed over a background. To be exact, I am using one background for every figure and am than inserting 66 smaller figures on certain locations in the figure.
The figures are all generated in MATLAB and then saved as .png using the export_fig function.
Currently I am doing this operation in Powerpoint but it takes a very long time to complete one figure and it is also very repetitive. I would thus like to know if it is possible do automate this process using matlab, i.e. overlaying multiple figures at specified locations over a background figure...
Regards
Dries

Réponse acceptée

KSSV
KSSV le 12 Avr 2017
Modifié(e) : KSSV le 12 Avr 2017
I1 = imread('cameraman.tif') ;
I2 = imread('peppers.png') ;
figure
hold on
imagesc(I2) ;
set(gca,'ydir','reverse')
imagesc([50 200], [50 200],I1)
imagesc([200 350], [200 350],I1)

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by