ximgproc_createGuidedFilter
import { ximgproc_createGuidedFilter } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Factory method, create instance of GuidedFilter and produce initialization routines.
ximgproc_createGuidedFilter(guide: Mat, radius: number, eps: number, scale: number): ximgproc_GuidedFilter | null;2 available overloads
ximgproc_createGuidedFilter(guide: Mat, radius: number, eps: number): ximgproc_GuidedFilter | null;ximgproc_createGuidedFilter(guide: Mat, radius: number, eps: number, scale: number): ximgproc_GuidedFilter | null;guideguided image (or array of images) with up to 3 channels, if it have more then 3 channels then only first 3 channels will be used.
radiusradius of Guided Filter.
epsregularization term of Guided Filter.
{eps}^2is similar to the sigma in the color space into bilateralFilter.scalesubsample factor of Fast Guided Filter, use a scale less than 1 to speeds up computation with almost no visible degradation. (e.g. scale==0.5 shrinks the image by 2x inside the filter)
For more details about (Fast) Guided Filter parameters, see the original articles [Kaiming10] [Kaiming15] .
The ximgproc_GuidedFilter | null result.
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.