ft_inpaint
import { ft_inpaint } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSimage, mask, output, radius
FUNCTIONft_inpaint
RETURN TYPEvoid
Image inpainting
Note: The algorithms are described in paper [Perf]:rec.
ft_inpaint(image: Mat, mask: Mat, output: Mat, radius: number, function_: number, algorithm: number): void;imageInput image.
maskMask used for unwanted area marking.
outputOutput destination, filled by the native operation. Output 32-bit image.
radiusRadius of the basic function.
function_Function type could be one of the following:
ft::LINEARLinear basic function.
algorithmAlgorithm could be one of the following:
ft::ONE_STEPOne step algorithm.ft::MULTI_STEPThis algorithm automaticaly increases radius of the basic function.ft::ITERATIVEIterative algorithm running in more steps using partial computations.
This function provides inpainting technique based on the fuzzy mathematic.
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.