Interface HistogramOptions

interface HistogramOptions {
    channel?: number;
    slots?: number;
}

Properties

Properties

channel?: number

The channel for which to compute the histogram. If it is unspecified, the image must have one channel or the method will throw an error.

Default

0

slots?: number

The number of slots that histogram can have.

Default

2 ** image.bitDepth