Azzera filtri
Azzera filtri

How can I write on an image?

6 visualizzazioni (ultimi 30 giorni)
Wanderson
Wanderson il 10 Gen 2012
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.

Risposte (2)

Florin Neacsu
Florin Neacsu il 10 Gen 2012
Hi,
Have a look at "text".
>doc text
HTH, Florin

Image Analyst
Image Analyst il 10 Gen 2012
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.

Community Treasure Hunt

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

Start Hunting!

Translated by