Composite of multiple small images over a larger background image
Mostrar comentarios más antiguos
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.
For an example you can check the attached figure. As you can see, the smaller images require to be at exact spots in the larger image.
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
4 comentarios
KSSV
el 4 de Mayo de 2017
Yes this can be done...You need to initialize a big matrix...and fill these small image pixel values and the specified locations and at the end use imshow to display the image.
Dries Weytjens
el 4 de Mayo de 2017
KSSV
el 4 de Mayo de 2017
How you got the image terncomp? How you have drawn it?
Dries Weytjens
el 4 de Mayo de 2017
Editada: Dries Weytjens
el 4 de Mayo de 2017
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 4 de Mayo de 2017
0 votos
Here's the official Mathworks instructions for sending pictures from MATLAB to Powerpoint: https://www.mathworks.com/matlabcentral/answers/103175-how-can-i-create-slides-in-ms-powerpoint-2007-using-matlab-7-13-r2011b. It uses ActiveX. With ActiveX you can do virtually anything from MATLAB that you could do in Powerpoint itself. For example, specifying where on the slide the image should be put.
If you still want to go with the pasting small images onto a larger image, like KSSV suggested, and then inserting only one picture within Powerpoint, then see my attached copy and paste demo.
1 comentario
Dries Weytjens
el 4 de Mayo de 2017
Categorías
Más información sobre ActiveX en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!