Skip to content

ximgproc_bilateralTextureFilter

Extended image processingfunctionOpenCV 5.0.0
import { ximgproc_bilateralTextureFilter } from '@banou/opencv-wasm'

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

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

Applies the bilateral texture filter to an image. It performs structure-preserving texture filter. For more details about this filter see [Cho2014].

See: rollingGuidanceFilter, bilateralFilter

ximgproc_bilateralTextureFilter(src: Mat, dst: Mat, fr: number, numIter: number, sigmaAlpha: number, sigmaAvg: number): void;
5 available overloads
ximgproc_bilateralTextureFilter(src: Mat, dst: Mat): void;
ximgproc_bilateralTextureFilter(src: Mat, dst: Mat, fr: number): void;
ximgproc_bilateralTextureFilter(src: Mat, dst: Mat, fr: number, numIter: number): void;
ximgproc_bilateralTextureFilter(src: Mat, dst: Mat, fr: number, numIter: number, sigmaAlpha: number): void;
ximgproc_bilateralTextureFilter(src: Mat, dst: Mat, fr: number, numIter: number, sigmaAlpha: number, sigmaAvg: number): void;
src

Source image whose depth is 8-bit UINT or 32-bit FLOAT

dst

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

fr

Radius of kernel to be used for filtering. It should be positive integer

numIter

Number of iterations of algorithm, It should be positive integer

sigmaAlpha

Controls the sharpness of the weight transition from edges to smooth/texture regions, where a bigger value means sharper transition. When the value is negative, it is automatically calculated.

sigmaAvg

Range blur parameter for texture blurring. Larger value makes result to be more blurred. When the value is negative, it is automatically calculated as described in the paper.

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.