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.
引用格式
Jiro Doke (2026). flattenMaskOverlay (https://ww2.mathworks.cn/matlabcentral/fileexchange/33986-flattenmaskoverlay), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2011b
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Graphics > Labels and Styling > Interactions, Camera Views, and Lighting > Lighting, Transparency, and Shading >
在 Help Center 和 MATLAB Answers 中查找有关 Lighting, Transparency, and Shading 的更多信息
标签
致谢
参考作品: Image overlay, showMaskAsOverlay
