Skip to content

xphoto_dctDenoising

xphotofunctionOpenCV 5.0.0
import { xphoto_dctDenoising } from '@banou/opencv-wasm'

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

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

The function implements simple dct-based denoising

<http://www.ipol.im/pub/art/2011/ys-dct/>.

See: fastNlMeansDenoising
xphoto_dctDenoising(src: Mat, dst: Mat, sigma: number, psize: number): void;
2 available overloads
xphoto_dctDenoising(src: Mat, dst: Mat, sigma: number): void;
xphoto_dctDenoising(src: Mat, dst: Mat, sigma: number, psize: number): void;
src

source image

dst

destination image

sigma

expected noise standard deviation

psize

size of block side where dct is computed

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.