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!