CImage:Planes


The Planes method returns the number of planes in the CImage, which is defined as the length of axis 3. The Planes method still is supported but has been replaced by the more general Len method.

Syntax

nPlanes = CImage:Planes()

where

    nPlanes is the length of image axis 3.

    On failure, this method returns 0.

Example

Suppose that CImage I has dimension 1024 x 512 x 64. Then

 

nLen = I:Len(3)

-- returns nLen = 64

nLen = I:Len()

-- returns nLen = 33554432

Related Topics

Cols,

Rows,

Len

CImage class