font_mask(str, font)

Create a boolean pixel mask based on string
Updated 14 Mar 2017

View License

mask = font_mask(str, font) returns boolean mask showing characters in the string "str", rendered using font "font". Meant to be used for image annotation where final image is of the same size as the original image.
Fonts based on Libgd fonts ( and on fonts from .

Cite As

Jaroslaw Tuszynski (2024). font_mask(str, font) (, MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes