File Exchange

image thumbnail

flattenMaskOverlay

version 1.3.0.1 (954 KB) by

Create a flattened image with an overlayed mask, with specified color and opacity (transparency).

3 Downloads

Updated

View License

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.

Comments and Ratings (1)

Lili

Lili (view profile)

Updates

1.3.0.1

Updated license

1.3

Fixed alphaLevel bug and example bug.

MATLAB Release
MATLAB 7.13 (R2011b)
Acknowledgements

Inspired by: Image overlay, showMaskAsOverlay

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video