Skip to content

detailEnhance

Computational photographyfunctionOpenCV 5.0.0
import { detailEnhance } from '@banou/opencv-wasm'

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

ARGUMENTSsrc, dst, sigma_s, sigma_r
FUNCTIONdetailEnhance
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

This filter enhances the details of a particular image.

detailEnhance(src: Mat, dst: Mat, sigma_s: number, sigma_r: number): void;
3 available overloads
detailEnhance(src: Mat, dst: Mat): void;
detailEnhance(src: Mat, dst: Mat, sigma_s: number): void;
detailEnhance(src: Mat, dst: Mat, sigma_s: number, sigma_r: number): void;
src

Input 8-bit 3-channel image.

dst

Output destination, filled by the native operation. Output image with the same size and type as src.

sigma_s

%Range between 0 to 200.

sigma_r

%Range between 0 to 1.

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.