OpenCV 4.12.0
開源計算機視覺
載入中...
搜尋中...
無匹配項

詳細描述

基於模糊數學(即 F 變換)的影像處理。

函式

void cv::ft::createKernel (InputArray A, InputArray B, OutputArray kernel, const int chn)
 從基本函式建立核心。
 
void cv::ft::createKernel (int function, int radius, OutputArray kernel, const int chn)
 從通用函式建立核心。
 
void cv::ft::filter (InputArray image, InputArray kernel, OutputArray output)
 影像濾波。
 
void cv::ft::inpaint (InputArray image, InputArray mask, OutputArray output, int radius, int function, int algorithm)
 影像修復。
 

函式文件

◆ createKernel() [1/2]

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

#include <opencv2/fuzzy/fuzzy_image.hpp>

從基本函式建立核心。

引數
Ax 中使用的基本函式。
By 中使用的基本函式。
kernelAB 派生的最終 32 位核心。
通道數核心通道數。

該函式建立可用於後續模糊影像處理的核心。

◆ createKernel() [2/2]

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

#include <opencv2/fuzzy/fuzzy_image.hpp>

從通用函式建立核心。

引數
function函式型別可以是以下之一
  • LINEAR 線性基本函式。
radius基本函式的半徑。
kernel最終 32 位核心。
通道數核心通道數。

該函式從預定義函式建立核心。

◆ filter()

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

#include <opencv2/fuzzy/fuzzy_image.hpp>

影像濾波。

引數
image輸入影像。
kernel最終 32 位核心。
輸出輸出 32 點陣圖像。

透過 F 變換對輸入影像進行濾波。

◆ inpaint()

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

#include <opencv2/fuzzy/fuzzy_image.hpp>

影像修復。

引數
image輸入影像。
mask用於標記不需要的區域的掩碼。
輸出輸出 32 點陣圖像。
radius基本函式的半徑。
function函式型別可以是以下之一
  • ft::LINEAR 線性(三角形)形狀基本函式。
algorithmAlgorithm 可以是以下之一

此函式提供基於模糊數學的修復技術。

注意
這些演算法在論文 [219] 中進行了描述。