How to display text on image

46 次查看(过去 30 天)
nayomi
nayomi 2011-10-13
回答: HEMANT 2015-1-25
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..

回答(2 个)

HEMANT
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.

Fangjun Jiang
Fangjun Jiang 2011-10-13
text()
annotation()
  1 个评论
Image Analyst
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 CenterFile Exchange 中查找有关 Install Products 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by