Image overlay

版本 1.3 (3.7 KB) 作者: Steve Eddins
Overlay a binary mask onto an image using a specified color
30.6K 次下载
更新时间 2019/12/3

查看许可证

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.

引用格式

Steve Eddins (2026). Image overlay (https://ww2.mathworks.cn/matlabcentral/fileexchange/10502-image-overlay), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2006a
兼容任何版本
平台兼容性
Windows macOS Linux

imoverlay

版本 已发布 发行说明
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.