SetAlphaChannel

SetAlphaChannel[image]

adds a fully opaque alpha channel to image.

SetAlphaChannel[image,a]

sets the opacity of all pixels to a.

SetAlphaChannel[image,aimage]

sets the alpha channel of image to aimage.

Details

Examples

open allclose all

Basic Examples  (1)

Set the pixel opacities in an image:

Scope  (7)

Add a constant white alpha channel to an RGB image:

Use an opacity of 0.5:

Specify the alpha channel using an image mask:

Specify the alpha channel using a grayscale image:

Specify the alpha channel using a color image:

Specify the alpha channel using a graphics object:

Add an alpha channel to a 3D image:

Applications  (4)

Segment the background to be used as an alpha channel:

Set the alpha channel to a detected background:

Use an alpha channel to mask regions of an image:

Use an alpha channel to highlight a region of interest:

Find individual cells that do not touch the border and have only one hole:

Highlight the detected foreground while keeping the background half transparent:

Set the alpha channel of an RGB image to be the negative of its blue channel:

Properties & Relations  (1)

Color images are converted to grayscale when used as an alpha channel:

Interactive Examples  (1)

Use an alpha channel to focus on a region of interest in an image:

Introduced in 2010
 (8.0)
 |
Updated in 2012
 (9.0)