Image overlay

버전 1.3 (3.72 KB) 작성자: Steve Eddins
Overlay a binary mask onto an image using a specified color

다운로드 수: 30.4K

업데이트 날짜: 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 (2023). Image overlay (, MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2006a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!


버전 게시됨 릴리스 정보

Renamed to IMOVERLAY_OLD. Use the new version (R2016a) in the Image Processing Toolbox.

Updated license

Based on a suggestion from Lasse, I added code to automatically convert the mask input to be logical.

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.