CLAHE
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;The this result.
apply
Equalizes the histogram of a grayscale image using Contrast Limited Adaptive Histogram Equalization.
apply(src: Mat, dst: Mat): void;srcSource image of type CV_8UC1 or CV_16UC1.
dstOutput destination, filled by the native operation. Destination image.
setClipLimit
Sets threshold for contrast limiting.
setClipLimit(clipLimit: number): void;clipLimitthreshold value.
getClipLimit
Returns threshold value for contrast limiting.
getClipLimit(): number;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;tileGridSizedefines the number of tiles in row and column.
getTilesGridSize
Returns Size defines the number of tiles in row and column.
getTilesGridSize(): Size;The Size result.
setBitShift
Sets bit shift parameter for histogram bins.
setBitShift(bitShift: number): void;bitShiftbit shift value (default is 0).
getBitShift
Returns the bit shift parameter for histogram bins.
getBitShift(): number;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.