You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This function overlays a logical mask on top of an image (with user-defined color and opacity) and creates a flattened image without an alpha channel. The resulting output can be treated as another image data. Interactive explorations, such as zooming, panning, and data tips, are faster, because the image does not contain an alpha channel.
Syntax:
flattenMaskOverlay(img, mask, opacity, color);
See the published example for more information.
Cite As
Jiro Doke (2026). flattenMaskOverlay (https://ch.mathworks.com/matlabcentral/fileexchange/33986-flattenmaskoverlay), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Image overlay, showMaskAsOverlay
General Information
- Version 1.3.0.1 (954 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
