這個例程是要檢查圖中焊接點,並獲取焊接點的直徑
處理過程:
首先,分離比較明亮的區域,然後將找出來的結果,
這裡采用了閾值分割:
然後,在ROI區域內選擇比較暗的區域,移除不適合的區域(
這裡采用了
fill_up_shape ( Region : RegionFillUp : Feature, Min, Max : )填充滿足給定的圖形特征的區域。
opening_circle ( Region : RegionOpening : Radius : ) 打開具有圓形結構的區域
select_shape ( Regions : SelectedRegions : Features, Operation, Min, Max : )選擇滿足要求的區域
sort_region ( Regions : SortedRegions : SortMode, Order, RowOrCol : )根據他們的位置關系進行排序 例:sort_region (, , 'first_point', 'true', 'column')
獲取系統架構(Windows_NT 等): OpSystem := environment('OS')
smallest_circle ( Regions : : : Row, Column, Radius ) 獲取圓形區域的參數
disp_circle ( : : WindowHandle, Row, Column, Radius : )在窗體中顯示圓形區域