Halcon運算元學習理解 threshold

2021-07-09 14:06:38 字數 842 閱讀 4554

threshold

(imagefilled, region, 0, 90)

用來分割影象,運算元的原形是:

threshold(image : region : mingray, maxgray : )
其中

-image是輸入影象

-region是分割後的結果

-mingraymaxgray是輸入的控制引數,分割的最小灰度值與最大灰度值

選擇滿足輸入控制引數的灰度值之內的灰度值,當所有的畫素點都滿足這個區域的話,就有乙個區域,當有多個畫素段滿足這個限制,每個畫素段對應乙個區域。

dev_close_window

()dev_update_off

()read_image

(image,'fabrik')

threshold

(image,seg,50,255)

dev_open_window_fit_image

(image, 0, 0, -1, -1, windowhandle)

dev_display

(seg)

原始影象:

分割後的影象:

halcon運算元學習

1.gen contour polygon xld contour row,col 功能 根據乙個多邊形 polygon 以元組形式給出 建立乙個xld輪廓 contour 輸出 contour 輸出建立的xld輪廓 輸入 row 輸入的行陣列 輸入 col 輸入的列陣列 例 gen contour...

halcon學習 measure 運算元

measure pair measure measure rehandle,sigma,threshold,transition,select rowedgefirst,columnedgefirst,amplitudefirst,rowedgesecond,columnedgesecond,amp...

Halcon運算元學習 create pose

建立3d位姿 transx,transy,transz,rotx,roty,rotz,orderoftransform,orderofrotation,viewoftransform pose 輸入 輸出 1.create pose建立3d姿勢 pose。姿勢描述了剛性3d變換,即由任意平移和旋轉組...