How can I write on an image?
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(2 个)
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.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!