How can I write on an image?
Afficher commentaires plus anciens
Hello guys,
I'm working with binary images here and I have to do a video with them. Actually I already did it, but my teacher want to know which picture is that when he pause the video.
So, my idea was write the name of image ON yourself and when I pause the video I'll see the name on the screen.
But I don't know how can I do that easily.
Thx for the help.
Réponses (2)
Florin Neacsu
le 10 Jan 2012
Hi,
Have a look at "text".
>doc text
HTH, Florin
Image Analyst
le 10 Jan 2012
0 votes
The text() function will write text into the overlay above the image.
If you want text actually IN the image pixels you can use imtext() (I think that's what it's called) but that's in the Computer Vision Toolbox. Otherwise you can use export_fig (the most downloaded File Exchange file ever - http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A29192 to save the image and annotation/overlay layer all together as one color image.
Catégories
En savoir plus sur Video Formats and Interfaces dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!