Multiple images in one image/figure

조회 수: 1 (최근 30일)
Dries Weytjens
Dries Weytjens 2017년 4월 12일
편집: KSSV 2017년 4월 12일
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

채택된 답변

KSSV
KSSV 2017년 4월 12일
편집: KSSV 2017년 4월 12일
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)

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by