How to display text on image
조회 수: 44 (최근 30일)
이전 댓글 표시
Dear all,
I want to display text on a particular location on a image when it shows using 'imshow'. Any body can help me ???
Thank you..
댓글 수: 0
답변 (2개)
HEMANT
2015년 1월 25일
To display text on perticular location on image use function 'text'. Exa. to display text on location 100,100 use command text(100,100,'SomeTextHere') to display it on perticular location. If you want to display pixel dimension it requires a little trick. text(100,100,[ '[' num2str(x), num2str(y) ']']), this command will display content of x and y on image at location 100,100. This command can be used to display centroid of any tracked image over the image.
댓글 수: 0
Fangjun Jiang
2011년 10월 13일
text()
annotation()
댓글 수: 1
Image Analyst
2011년 10월 13일
These will put stuff into the overlay. If you want text into the actual image itself, you'd need the computer vision toolbox which has an imtext() function. It just depends on what/where you mean by display.
참고 항목
카테고리
Help Center 및 File Exchange에서 Install Products에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!