font_mask(str, font)
Version 1.0.0.0 (222 KB) by
Jaroslaw Tuszynski
Create a boolean pixel mask based on string
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 ( https://github.com/libgd/libgd) and on fonts from http://patorjk.com/software/taag/ .
Cite As
Jaroslaw Tuszynski (2025). font_mask(str, font) (https://www.mathworks.com/matlabcentral/fileexchange/62059-font_mask-str-font), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2016b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Region and Image Properties >
Find more on Region and Image Properties in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |