閥值 threshold : 利用亮度值 做區域分割
auto_threshold : 自動閥值
參數 : sigma
利用單通道灰階值方圖做高斯平滑 sigma 值越高越平滑
在直方圖中,坡谷 與坡谷之間 是一個區塊,越多坡谷 區塊切分越多 (坡谷數 +1 )
讓使用者 用滑鼠在畫面畫框 右鍵結束
draw_rectangle1 (HWindowID, Row1, Column1, Row2, Column2)
輸入一個 方框資料 取得 Region
gen_rectangle1 (Himage, Row1, Column1, Row2, Column2)
獲得任意型狀的 region (由使用者畫出一個封閉區域
draw_region
均值化 Smooth
mean_image(Image : ImageMean : MaskWidth, MaskHeight : )
取得小塊的圖
reduce_domain(Himage,region,ImageReduced)
assign 指定 物件數據
assign(meanRadius,sum(Radius)/Radius)
area_center 區域中心
area_center(FinalBalls,Area,RowCenter,Colcenter)
min() 最小值
minArea := min(Area)
fast_match : 快速做 Match
fast_match(Image : Matches : TemplateID, MaxError : )
MaxError : 越小 愈嚴格
invert_image :將圖像 灰階反轉
bin_threshold : 快速二值化之一 找出黑色的區域
var_threshold : 找出 與鄰近關係 二值化方法
