Skip to content

CLAHE

Image processingclassOpenCV 5.0.0
import { CLAHE } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

Native object: release it with using or delete(). Factories can return null; check before calling methods. Inherits Algorithm.

imgproc_shape

Base class for Contrast Limited Adaptive Histogram Equalization.

Constructors and members

clone

Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.

clone(): this;
Returns

The this result.

apply

Equalizes the histogram of a grayscale image using Contrast Limited Adaptive Histogram Equalization.

apply(src: Mat, dst: Mat): void;
src

Source image of type CV_8UC1 or CV_16UC1.

dst

Output destination, filled by the native operation. Destination image.

setClipLimit

Sets threshold for contrast limiting.

setClipLimit(clipLimit: number): void;
clipLimit

threshold value.

getClipLimit

Returns threshold value for contrast limiting.

getClipLimit(): number;
Returns

The number result.

setTilesGridSize

Sets size of grid for histogram equalization. Input image will be divided into equally sized rectangular tiles.

setTilesGridSize(tileGridSize: Size): void;
tileGridSize

defines the number of tiles in row and column.

getTilesGridSize

Returns Size defines the number of tiles in row and column.

getTilesGridSize(): Size;
Returns

The Size result.

setBitShift

Sets bit shift parameter for histogram bins.

setBitShift(bitShift: number): void;
bitShift

bit shift value (default is 0).

getBitShift

Returns the bit shift parameter for histogram bins.

getBitShift(): number;
Returns

current bit shift value.

collectGarbage

Release cached working buffers used by contrast-limited adaptive histogram equalization.

collectGarbage(): void;

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.