How can I write on an image?

1 次查看(过去 30 天)
Wanderson
Wanderson 2012-1-10
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.

回答(2 个)

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

Image Analyst
Image Analyst 2012-1-10
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