Label Image
This function is useful in placing text label, time-stamps, legends, etc. on the image without any loss in image quality. It also does not depend on the getframe method which renders the desktop useless during the process.
This is a function representation of the ImagePatchTool
http://www.mathworks.com/matlabcentral/fileexchange/25111-imagepatchtool
Different character set / fonts can also be generated using the ImagePatchTool and incorporated into this script.
Usage:
iout = labelimg(original, label_text)
iout = labelimg(original, label_text, location)
Please feel free to report bugs, feature request, comments and suggestions.
Cite As
Amitabh Verma (2024). Label Image (https://www.mathworks.com/matlabcentral/fileexchange/31187-label-image), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Image Arithmetic >
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Watermarking >
Tags
Acknowledgements
Inspired by: ImagePatchTool
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.