File Exchange

image thumbnail

Convert Text to an image

version (6.25 KB) by Tobias Kiessling
text2im.m converts a passed text string to a matrix which contains the the string as an image (simpl


Updated 13 May 2008

No License

Text2Im converts a passed string to a bw-image.

Often it is necessary to burn in annotations in evaulated images. Since I didn't found an easy solution to do so, I wrote this programm to generate an image array which then can be easily integrated in an image arry (for example via implace.m from ).

Cite As

Tobias Kiessling (2020). Convert Text to an image (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (18)

John Wu

Amore Fu


Ran Kafri

Good work


i tried this code. but i'm getting one babys image may be some wrong with my main program.
can you tell me how to write the main program.?


Can i get the source code please...


Worked perfectly! Allowed me to easily solve the problem of including text in an image. Thank you so much!


Bram vd H

Works perfectly, thanks!

Aby Mathew

Thanks, It realy helped me,
Note, I changed it a little bit and submitted it again here:
Thanks again.

Gus Lott

Works beautifully

wow, thanks for doing the hard work :)

MATLAB Release Compatibility
Created with R2006b
Compatible with any release
Platform Compatibility
Windows macOS Linux