ImageTools[Layers] - return the layer information of an image
|
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
|
|
|
|
Examples
|
|
>
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
>
|
|
| (3) |
|
|
Download Help Document
Was this information helpful?