OpenCV 5.0.0-pre
Open Source Computer Vision
Loading...
Searching...
No Matches

Detailed Description

Image proceesing based on fuzzy mathematics namely F-transform.

Functions

void cv::ft::createKernel (InputArray A, InputArray B, OutputArray kernel, const int chn)
 Creates kernel from basic functions.
 
void cv::ft::createKernel (int function, int radius, OutputArray kernel, const int chn)
 Creates kernel from general functions.
 
void cv::ft::filter (InputArray image, InputArray kernel, OutputArray output)
 Image filtering.
 
void cv::ft::inpaint (InputArray image, InputArray mask, OutputArray output, int radius, int function, int algorithm)
 Image inpainting.
 

Function Documentation

◆ createKernel() [1/2]

void cv::ft::createKernel ( InputArray A,
InputArray B,
OutputArray kernel,
const int chn )
Python:
cv.ft.createKernel(function, radius, chn[, kernel]) -> kernel
cv.ft.createKernel1(A, B, chn[, kernel]) -> kernel

#include <opencv2/fuzzy/fuzzy_image.hpp>

Creates kernel from basic functions.

Parameters
ABasic function used in axis x.
BBasic function used in axis y.
kernelFinal 32-bit kernel derived from A and B.
chnNumber of kernel channels.

The function creates kernel usable for latter fuzzy image processing.

◆ createKernel() [2/2]

void cv::ft::createKernel ( int function,
int radius,
OutputArray kernel,
const int chn )
Python:
cv.ft.createKernel(function, radius, chn[, kernel]) -> kernel
cv.ft.createKernel1(A, B, chn[, kernel]) -> kernel

#include <opencv2/fuzzy/fuzzy_image.hpp>

Creates kernel from general functions.

Parameters
functionFunction type could be one of the following:
  • LINEAR Linear basic function.
radiusRadius of the basic function.
kernelFinal 32-bit kernel.
chnNumber of kernel channels.

The function creates kernel from predefined functions.

◆ filter()

void cv::ft::filter ( InputArray image,
InputArray kernel,
OutputArray output )
Python:
cv.ft.filter(image, kernel[, output]) -> output

#include <opencv2/fuzzy/fuzzy_image.hpp>

Image filtering.

Parameters
imageInput image.
kernelFinal 32-bit kernel.
outputOutput 32-bit image.

Filtering of the input image by means of F-transform.

◆ inpaint()

void cv::ft::inpaint ( InputArray image,
InputArray mask,
OutputArray output,
int radius,
int function,
int algorithm )
Python:
cv.ft.inpaint(image, mask, radius, function, algorithm[, output]) -> output

#include <opencv2/fuzzy/fuzzy_image.hpp>

Image inpainting.

Parameters
imageInput image.
maskMask used for unwanted area marking.
outputOutput 32-bit image.
radiusRadius of the basic function.
functionFunction type could be one of the following:
algorithmAlgorithm could be one of the following:
  • ft::ONE_STEP One step algorithm.
  • ft::MULTI_STEP This algorithm automaticaly increases radius of the basic function.
  • ft::ITERATIVE Iterative algorithm running in more steps using partial computations.

This function provides inpainting technique based on the fuzzy mathematic.

Note
The algorithms are described in paper [216].