Convert text string to a binary image. For each input string, creates a binary matrix of dimensions [hxw] that when displayed as an image shows the string. See example for usage. First, uses text() to display the text using Matlab's display functionality. Next uses getframe() to capture the screen and crops the resulting image appropriately. USAGE masks = txt2img( strings, h, [txtPrp] ) INPUTS strings - {1xn} text string or cell array of text strings to convert h - font height in pixels txtPrp - [] additional properites for call to "text" OUTPUTS masks - {1xn} binary image masks of height h for each string EXAMPLE masks=txt2img('hello world',100); im(masks{1}) See also CHAR2IMG, GETFRAME, TEXT Piotr's Image&Video Toolbox Version 2.35 Copyright 2009 Piotr Dollar. [pdollar-at-caltech.edu] Please email me if you find bugs, or have suggestions or questions! Licensed under the Lesser GPL [see external/lgpl.txt]