combine layers into a color image - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Image Processing : ImageTools Package : ImageTools/CombineLayers

ImageTools[CombineLayers] - combine layers into a color image

Calling Sequence

CombineLayers( img1, img2, img3, img4, opts )

Parameters

img1

-

GrayImage; first image layer

img2

-

GrayImage; second image layer

img3

-

GrayImage; third image layer

img4

-

(optional) GrayImage; fourth image layer

opts

-

(optional) equation(s) of the form option = value; specify options for the CombineLayers command

Description

• 

The CombineLayers command combines monochromatic images to create a colored image.

• 

The img1, img2, img3, and img4 parameters specify the input image layers. They must have the same dimensions and be of type GrayImage.

• 

If the optional parameter img4 is not given, the result is an image of type ColorImage. If img4 is given, it corresponds to the alpha layer and the result is an image of type ColorAImage.

Examples

withImageTools:

Create monochromatic images for the red, green, and blue layers.

img_r:=Create100,200,r,c→0.251+sin0.005+0.003cc1+sin0.15r:

img_g:=Create100,200,r,c→0.51+ⅇr50.sinc20.:

img_b:=Create100,200,r,c→r100.:

Combine them to create a color image.

img_rgb:=CombineLayersimg_r,img_g,img_b:

Embedimg_rgb

See Also

ImageTools, ImageTools[GetLayer], ImageTools[Layers], ImageTools[SetLayer]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam