Code covered by the BSD License  

Highlights from

5.0 | 1 rating Rate this file 6 Downloads (last 30 days) File Size: 954 KB File ID: #33986 Version: 1.3
image thumbnail



Jiro Doke (view profile)


29 Nov 2011 (Updated )

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

| Watch this File

File Information

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.

  flattenMaskOverlay(img, mask, opacity, color);

See the published example for more information.


Image Overlay and Show Mask As Overlay inspired this file.

Required Products MATLAB
MATLAB release MATLAB 7.13 (R2011b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
10 Feb 2012 Lili

Lili (view profile)

29 Nov 2011 1.3

Fixed alphaLevel bug and example bug.

Contact us