Interface LevelOptions

interface LevelOptions {
    channels?: number[];
    gamma?: number | number[];
    inputMax?: number | number[];
    inputMin?: number | number[];
    out?: Image;
    outputMax?: number | number[];
    outputMin?: number | number[];
}

Properties

channels?: number[]

Specify which channels should be processed. To process the alpha as well, specify the channels as [0,1,2,3] for RGBA images and [0,1] for GREYA.

Default

All components of the image the image (no alpha).
gamma?: number | number[]

Specifies the shape of the curve connecting the two points.

Default

1

inputMax?: number | number[]

Input upper bound.

Default

image.minMax().min

inputMin?: number | number[]

Input lower bound.

Default

image.minMax().min

out?: Image

Image to which to output.

outputMax?: number | number[]

Output upper bound.

Default

image.maxValue

outputMin?: number | number[]

output lower bound.

Default

0