ALPHAMASK: semi-transparent image overlay

버전 1.0.0.0 (1.77 KB) 작성자: Andrew Davis
Overlay image with semi-transparent mask and return handle
다운로드 수: 2.1K
업데이트 날짜: 2012/2/6

라이선스 보기

ALPHAMASK: Overlay image with semi-transparent mask

Overlays a semi-transparent mask over an image. By default the
currently displayed figure is overlain.
Options include overlay colour and opacity.
Returns a handle to the overlay mask.

Usage:
hOVM = alphaMask(bwMask, [colour, transparency, axHandle])
bwMask: logical matrix representing mask
colour: vector of three rgb values in range [0, 1] (optional; default [0 0 1])
transparency: scalar in range [0, 1] representing overlay opacity (optional; default 0.6)
axHandle: handle to axes on which to operate (optional; default current axes)
hOVM: handle to overlay image is returned

Example:
figure;
I = peaks(200);
bwMask = eye(200);
imshow(I, [], 'Colormap', hot);
alphamask(bwMask, [0 0 1], 0.5);

See also IMSHOW, CREATEMASK

인용 양식

Andrew Davis (2024). ALPHAMASK: semi-transparent image overlay (https://www.mathworks.com/matlabcentral/fileexchange/34936-alphamask-semi-transparent-image-overlay), MATLAB Central File Exchange. 검색됨 .

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

받음: Image overlay

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0