Code covered by the BSD License  

Highlights from
flattenMaskOverlay

5.0

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

flattenMaskOverlay

by Jiro Doke

 

29 Nov 2011 (Updated 29 Nov 2011)

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

| Watch this File

File Information
Description

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.

Acknowledgements

Image Overlay and Show Mask As Overlay inspired this file.

Required Products MATLAB
MATLAB release MATLAB 7.13 (R2011b)
Tags for This File  
Everyone's Tags
flatten image, image processing, mask, opacity, overlay, transparency
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
10 Feb 2012 Lili  
Updates
29 Nov 2011

Fixed alphaLevel bug and example bug.

Contact us