File Exchange

image thumbnail

matprint

version 1.0 (46.8 KB) by

Prints (rasterizes) text directly to image matrix.

0 Downloads

Updated

View License

I spent a long time searching the web, looking for a script to print text directly to image matrix, without using text and getframe. And I realized I am not alone (e.g. http://www.mathworks.com/matlabcentral/newsreader/view_thread/163433 and more). In the end, I decided to make something myself. This is just an example how it would work. I would like to get some feedback from potential users, to know if this might be useful and whether I should put further effort into this. My plans are to employ some arcs (circular, parabolic, elliptic,...), finish simple font and maybe read fonts from some "normal" file type,... Any feedback?

Comments and Ratings (6)

peng wang

Karel Lebeda

Hi, no, no extensions so far... There didn't seem to be any interest by anyone, so I left it for now.

John Morris

Interesting script. Have you developed the simple font any further?

John Morris

Karel Lebeda

Position is in format [x;y] and they're by default coordinates of the upper left corner; that can be changed by alignment options. Currently, the only font format it takes is my 'special' one... I thought about making it load some common type, or at least create some font(s) in this format (100 characters is not so much...).

Btw, if raster format with fixed font size is enough for you, I can recommend this: http://www.mathworks.co.kr/matlabcentral/fileexchange/26940-render-rgb-text-over-rgb-or-grayscale-image

Dan Gianotti

This would certainly be useful for me... What are the allowable fonts? And what format is 'position'?

MATLAB Release
MATLAB 7.14 (R2012a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video