intensity_transform_contrastStretching
import { intensity_transform_contrastStretching } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSinput, output, r1, s1
FUNCTIONintensity_transform_contrastStretching
RETURN TYPEvoid
Given an input bgr or grayscale image, apply linear contrast stretching on domain [0, 255] and return the resulting image.
intensity_transform_contrastStretching(input: Mat, output: Mat, r1: number, s1: number, r2: number, s2: number): void;inputinput bgr or grayscale image.
outputresulting image of contrast stretching.
r1x coordinate of first point (r1, s1) in the transformation function.
s1y coordinate of first point (r1, s1) in the transformation function.
r2x coordinate of second point (r2, s2) in the transformation function.
s2y coordinate of second point (r2, s2) in the transformation function.
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.