Halcon函數總結:
auto_threshold(Image : Regions : Sigma : ) //自動閾值,halcon根據圖像的直方圖來判定閾值
例程代碼參考:auto_threshold.hdev(該例程暫時還沒有看明白)
===================================================================================================
sobel_amp(Image : EdgeAmplitude : FilterType, Size : ) //使用sobel算子算出邊緣
background_seg(Foreground : BackgroundRegions : : ) //對於給定了前景region的圖像,確定圖像的背景連接區域(正常是首先提取邊緣region,然後用這個函數)
fill_up_shape(Region : RegionFillUp : Feature, Min, Max : ) //按照給定的特徵來填充region。
參考例程:background_seg.hdev
===================================================================================================
bandpass_image(Image : ImageBandpass : FilterType : ) //利用帶通濾波器檢測直線(效果可以看出,該函數能高亮圖像中的直線)
skeleton(Region : Skeleton : : ) //提取骨架
gen_contours_skeleton_xld(Skeleton : Contours : Length, Mode : ) //將骨架轉換爲XLD輪廓數據
參考例程:bandpass_image.hdev
===================================================================================================
bin_threshold(Image : Region : : ) //自動閾值
參考例程:bin_threshold.hdev
===================================================================================================
histo_to_thresh( : : Histogramm, Sigma : MinThresh, MaxThresh) //根據直方圖來確定閾值
參考例程:bin_threshold2.hdev (暫時未全部理解...有待研究)
===================================================================================================
gen_rectangle1( : Rectangle : Row1, Column1, Row2, Column2 : ) //創建一個矩形
count_seconds( : : : Seconds) //得到時間值。該函數方便測試幾條指令執行的時間
binomial_filter(Image : ImageBinomial : MaskWidth, MaskHeight : ) //二項式濾波器 用於平滑圖像
smooth_image(Image : ImageSmooth : Filter, Alpha : ) //使用給定的濾波器平滑圖像
參考例程:binomai_fiter.hdev