Skip to content

ft_FT02D_iteration

fuzzyfunctionOpenCV 5.0.0
import { ft_FT02D_iteration } from '@banou/opencv-wasm'

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

ARGUMENTSmatrix, kernel, output, mask
FUNCTIONft_FT02D_iteration
RETURN TYPEnumber
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Computes F^0-transfrom and inverse F^0-transfrom at once and return state.

ft_FT02D_iteration(matrix: Mat, kernel: Mat, output: Mat, mask: Mat, maskOutput: Mat, firstStop: boolean): number;
matrix

Input matrix.

kernel

Kernel used for processing. Function ft::createKernel can be used.

output

Output destination, filled by the native operation. Output 32-bit float array.

mask

Mask used for unwanted area marking.

maskOutput

Output destination, filled by the native operation. Mask after one iteration.

firstStop

If true function returns -1 when first problem appears. In case of false the process is completed and summation of all problems returned.

This function computes iteration of F-transfrom and inverse F-transfotm and handle image and mask change. The function is used in ft::inpaint function.

Returns

The number 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.