Skip to content

createCLAHE

Image processingfunctionOpenCV 5.0.0
import { createCLAHE } from '@banou/opencv-wasm'

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

Creates a smart pointer to a cv::CLAHE class and initializes it.

createCLAHE(clipLimit: number, tileGridSize: Size): CLAHE | null;
3 available overloads
createCLAHE(): CLAHE | null;
createCLAHE(clipLimit: number): CLAHE | null;
createCLAHE(clipLimit: number, tileGridSize: Size): CLAHE | null;
clipLimit

Threshold for contrast limiting.

tileGridSize

Size of grid for histogram equalization. Input image will be divided into equally sized rectangular tiles. tileGridSize defines the number of tiles in row and column.

Returns

The CLAHE | null result.

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.