ximgproc_bilateralTextureFilter
import { ximgproc_bilateralTextureFilter } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;srcSource image whose depth is 8-bit UINT or 32-bit FLOAT
dstOutput destination, filled by the native operation. Destination image of the same size and type as src.
frRadius of kernel to be used for filtering. It should be positive integer
numIterNumber of iterations of algorithm, It should be positive integer
sigmaAlphaControls 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.
sigmaAvgRange 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.