/** @brief Computes F0-transfrom and inverse F0-transfrom at once and return state.
@param image Input image.
@param matrix Input matrix.
@param kernel Kernel used for processing. Function **createKernel** can be used.
@param imageOutput Output 32-bit array.
@param output Output 32-bit array.
@param mask Mask used for unwanted area marking.
@param maskOutput Mask after one iteration.
@param 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 *inpaint* function.