ImagePatchTool
ImagePatchTool ver. 1.31©
Amitabh Verma
amtukv@gmail.com
This script is to demonstrate how to place text/image or label an image without losing on the pixel information in the rest of the image. The main purpose of the script is for appending text information on the image before being saved after an image capture or processing step. The patching speed is in 'ms' enough for real time operations.
I have built a GUI for an easy demonstration and labeling stand alone pics. Final images are saved in Uncompressed tif files. Images can be RGB or grayscale. This script will not work with gifs and nor have I tested in depth how matlab handles gifs.
Howto:
1. Default patch text information is loaded on program startup (you can save your own startup defaults)
2. Enter your text (for special characters you can use copy-paste function ctrl+c/ctrl+v)
3. Make Label
4. Load Image
5. Patch Image
6. Save Image
7. Find Difference button will count number of pixels used by the patch (basically the count of pixel information difference between the original and the patched).
(Only required when style of patch needs to be changed NOT for a new label)
If you wish to customize your patch style
1. Enter RGB values between (0 to 1).
2. Chose font
3. Initialize
4. Rest of the steps as above
Features:
1. Customizable font type, size, color
2. Customizable background color
3. Transparent patching of text with merging
4. Customizable location of patch
5. No Loss of pixel information, currently some suggested methods use getframe/gcf
6. Fast ~0.001 sec. for real time applications
7. RGB as well as grayscale support
8. External image support to add image legend, company logo, etc. with transparency support.
Limitations:
1. Single line feed (no. of characters per line is [image width/font width])
Future Versions
1. Multiple line support
Please report bugs, feature request, comments and suggestions to Amitabh Verma <amtukv@gmail.com>
Thank you for evaluating ImagePatchTool©
Note: Being a new MATLAB user I am eager to learn ways which can speed up the implementation of this code. Your feedback is highly appreciated.
Citar como
Amitabh Verma (2024). ImagePatchTool (https://www.mathworks.com/matlabcentral/fileexchange/25111-imagepatchtool), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement >
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis >
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Watermarking >
- MATLAB > Graphics > 2-D and 3-D Plots > Surfaces, Volumes, and Polygons > Polygons >
Etiquetas
Agradecimientos
Inspirado por: Display the fusion of two images, Convert Text to an image, Patchwork, Save text in image format
Inspiración para: Label Image, C# Matlab Program Launcher
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
ImagePatchTool/
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.9.0.0 | Changes in ver 1.31
|
||
1.8.0.0 | Changes in ver 1.3
|
||
1.6.0.0 | Changes in ver 1.2
Changes in ver 1.1
|
||
1.4.0.0 | Changes in ver 1.1
|
||
1.0.0.0 |