How to add text to an image
4 次查看(过去 30 天)
显示 更早的评论
Hello, If I have an image with the size 512*512 (or any other size) how do I add a string to any location I choose for example location (100,250) all the codes I found are too long but is there a one line code that does this?
0 个评论
采纳的回答
Image Analyst
2013-12-16
You can do it with a function in the Computer Vision System Toolbox. If you don't have that, you'll have to use this from Brett Shoelson: http://www.mathworks.com/matlabcentral/fileexchange/38721-embed-text-and-graphics-in-an-image
13 个评论
Image Analyst
2013-12-17
That's nonsense. You don't set the units property of a scalar variable to anything. LAX and LAY don't even have properties like 'units'! You set the units property of an axes or figure to something.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!