ImageTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

ImageTools

  

Layers

  

return the layer information of an image

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Layers(img, info)

Parameters

img

-

Image; input image

info

-

(optional) type of information to return

Description

• 

The Layers command returns the number of layers of an image. A grayscale image has one layer. A color image has three layers. A color image with alpha channel has four layers.

• 

The img parameter is the image.

Information

• 

The optional info parameter specifies the information to return. Its default value is size. The following operations are supported:

– 

lower: lower layer index

– 

upper: upper layer index

– 

range: layer index range

– 

size: number of layers

Examples

withImageTools:

imgCreate100,200,channels=3:

Layersimg

3

(1)

map2Layers,img,size,lower,upper,range

3,1,3,1..3

(2)

imgCreate100,200:

Layersimg

1

(3)

See Also

ImageTools

ImageTools[CombineLayers]

ImageTools[GetLayer]

ImageTools[Height]

ImageTools[SetLayer]

ImageTools[Width]

 


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