Image overlay
The function IMOVERLAY creates a mask-based image overlay. It takes input image and a binary mask, and it produces an output image whose masked pixels have been replaced by a specified color.
NOTE: This original implementation of IMOVERLAY was superseded in R2016a by a new function, with the same name, in the Image Processing Toolbox. The version here has been renamed to IMOVERLAY_OLD.
Cite As
Steve Eddins (2024). Image overlay (https://www.mathworks.com/matlabcentral/fileexchange/10502-image-overlay), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Industries > Biotech and Pharmaceutical > Genomics and Next Generation Sequencing >
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Image Segmentation > Color Segmentation >
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Image Arithmetic >
Tags
Acknowledgements
Inspired: JalaliLabUCLA/Image-feature-detection-using-Phase-Stretch-Transform, Image Sequence Display and Overlay with Binary Mask, Multi wall (COST231) Signal Propagation Models + Python Code, Visualization of multi-modal volume segmentation, 3D Ray Tracing For Indoor Radio Propagation, imagescnan.m v2.1 (Aug 2009), flattenMaskOverlay, ALPHAMASK: semi-transparent image overlay, Neuron counting, TeloTool - Terminal Restriction Fragment Analysis
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.
imoverlay
Version | Published | Release Notes | |
---|---|---|---|
1.3 | Renamed to IMOVERLAY_OLD. Use the new version (R2016a) in the Image Processing Toolbox. |
||
1.2.0.1 | Updated license |
||
1.2.0.0 | Based on a suggestion from Lasse, I added code to automatically convert the mask input to be logical. |
||
1.0.0.0 | Based on a suggestion by Matt Whitaker, I added documentation and an example explaining how to use mat2gray for double / single grayscale images outside the normal [0, 1] range. |