Filter löschen
Filter löschen

Insert an external image in a video

3 Ansichten (letzte 30 Tage)
Andres Salomon Fielbaum Schnitzler
Beantwortet: Image Analyst am 31 Aug. 2023
Hi,
I am creating a video that is based on geoscatter. I want to overlap an external image over my video, that remains there during the whole video. I have tried to insert it using imshow, but then either an error appears
"Adding GeographicAxes to axes is not supported. Turn hold off."
Or it does work, but putting the whole video into the axes I define. Is there a different way to do this? Thanks in advance

Antworten (2)

Vidip Jain
Vidip Jain am 31 Aug. 2023
I understand you want to overlay an external image on top of a “geoscatter” plot in MATLAB, you can follow a different approach that involves creating two separate axes within the same figure using subplot, one for the “geoscatter” plot and another for the image overlay.
Finally, load the external image using “imread” and display it on the second axis using “imshow”. This way, you can control the positioning and layering of the elements more effectively.
Refer to this documentation for more information:
  1. https://www.mathworks.com/help/matlab/ref/subplot.html
  2. https://www.mathworks.com/help/matlab/ref/geoscatter.html
  3. https://www.mathworks.com/help/matlab/ref/imread.html
  4. https://www.mathworks.com/help/images/ref/imshow.html

Image Analyst
Image Analyst am 31 Aug. 2023
You can paste your image on top of your frame before you send it to videoWriter. See my attached copy and paste demo.
I've also attached a bunch of other movie creation demos for what it's worth.

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by