STATMASK: Overlay image with coloured statistical mask

버전 1.0.0.0 (2.62 KB) 작성자: Andrew Davis
Overlay an image with a thresholded statistical mask. The mask values are not rescaled.
다운로드 수: 601
업데이트 날짜: 2013/1/31

라이선스 보기

Overlays a mask of statistics on an image. By default the
currently displayed figure is overlain.

First, the underlay is converted to RGB. The statistical overlay
is upscaled if necessary (using nearest neighbour sampling) to
match the size of the underlay. Then the RGB data is overlain
with the statmask, without rescaling of the stat values. This
allows for inspection of mask values with the data cursor.

The function returns a handle to the overlay mask if requested.

Notes: Requires freezeColors from the file exchange
Consider using getclim to help set your colormap limits

Usage:
hOv = statmask(stats, [thresh, cmap, clim, cbOpt, hAx])

stats: matrix representing mask values
thresh: scalar value of threshold for transparency (default 0)
cmap: colour-map to use. default flipud(autumn(256))
clim: limits for color display of stats overlay (default min/max of stats)
cbOpt: colorbar display: 'on', 'onwest', or 'hidden', else off (default 'on')
hAx: handle to axes on which to operate (default current axes)

hOv: handle to overlay image is returned

Example:
I = peaks(200);
bwMask = eye(25).*rand(25);
figure;
imshow(I, [], 'Colormap', bone(256), 'InitialMag', 200);
statmask(bwMask);

인용 양식

Andrew Davis (2024). STATMASK: Overlay image with coloured statistical mask (https://www.mathworks.com/matlabcentral/fileexchange/40103-statmask-overlay-image-with-coloured-statistical-mask), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2012a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Display Image에 대해 자세히 알아보기

Community Treasure Hunt

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

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