cvCanny

cvCanny,開放計算機視覺(OpenCV)庫庫函式之一,用於對圖像的邊緣檢測(採用canny算法)。

說明

開放計算機視覺(OpenCV)庫庫函式之一,用於對圖像的邊緣檢測(採用canny算法)。

定義

void cvCanny( const CvArr* image,CvArr* edges,double threshold1,double threshold2, int aperture_size=3 );

參數說明?

image 輸入圖像
edges 輸出的邊緣圖像
threshold1 第一個閾值
threshold2 第二個閾值
aperture_size Sobel 運算元核心大小
函式 cvCanny 採用 Canny 算法發現輸入圖像的邊緣而且在輸出圖像中標識這些邊緣。threshold1和threshold2 當中的小閾值用來控制邊緣連線,大的閾值用來控制強邊緣的初始分割。

相關詞條

相關搜尋

熱門詞條

聯絡我們