Skip to content

stylization

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

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

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

Stylization aims to produce digital imagery with a wide variety of effects not focused on photorealism. Edge-aware filters are ideal for stylization, as they can abstract regions of low contrast while preserving, or enhancing, high-contrast features.

stylization(src: Mat, dst: Mat, sigma_s: number, sigma_r: number): void;
3 available overloads
stylization(src: Mat, dst: Mat): void;
stylization(src: Mat, dst: Mat, sigma_s: number): void;
stylization(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.