首先,要在這兒先道個歉。真的很對不起,因爲去年是研究生第一年,一大堆的課程學習,考試壓力,每天也沒什麼時間和心思搞科研這塊,所以中間Halcon的學習整整斷了一年,暑假回來之後,發現有一些人給我留下了一些回覆,自己心裏感覺特別過意不去,如果還有人對Halcon學習有興趣的話,可以加251543742這個羣,我剛建的,這樣方便大家學習交流。
comment( : :Comment : ) 註釋語句
exit ( : : : ) 退出函數
open_file ( : :FileName, FileType : FileHandle )創建('output' or 'append')或者打開 ( output)文本文件
fwrite_string ( : :FileHandle, String : )寫入string
dev_close_window( : : : ) 關閉活躍的圖形窗口。
read_image( : Image : FileName : ) ;加載圖片
get_image_pointer1 (Image : : : Pointer, Type, Width, Height )
獲得圖像的數據。如:類型(= '字節',' ' ',uint2 int2 等等) 和圖像的尺寸( 的寬度和高度)
dev_open_window( ::Row,Column,WidthHeight,Background :WindowHandle ) 打開一個圖形的窗口。
dev_set_part ( : :Row1, Column1, Row2, Column2 : ) 修改圖像顯示的位置
dev_set_draw (’fill’) 填滿選擇的區域
dev_set_draw (’margin’) 顯示的對象只有邊緣線,
dev_set_line_width (3) 線寬用Line Width指定
threshold ( Image :Region : MinGray, MaxGray : )選取從輸入圖像灰度值的g滿足下列條件:MinGray < = g < = MaxGray 的像素。
dev_set_colored (number) 顯示region是用到的顏色數目
dev_set_color ( : :ColorName : ) 指定顏色
connection ( Region :ConnectedRegions : : )合併所有選定像素觸摸相互連通區
fill_up ( Region :RegionFillUp : : )填補選擇區域中空洞的部分
fill_up_shape( Region : RegionFillUp : Feature, Min, Max : )
select_shape ( Regions :SelectedRegions : Features, Operation, Min, Max : )選擇帶有某些特徵的區域,Operation是運算,如“與”“或”
smallest_rectangle1 (Regions : : : Row1, Column1, Row2, Column2 )以矩形像素座標的角落,Column1,Row2(Row1,Column2)計算矩形區域( 平行輸入座標軸) 。
dev_display (Object : : : ) 顯示圖片
disp_rectangle1( : : WindowHandle, Row1, Column1, Row2, Column2 : )顯示的矩形排列成的。disp_rectangle1顯示一個或多個矩形窗口的產量。描述一個矩形左上角(Row1,Column1) 和右下角(Row2,Column2)。顯示效果如圖1.
texture_laws( Image : ImageTexture : FilterTypes, Shift, FilterSize : )
texture_laws實行紋理變換圖像FilterTypes:預置的過濾器Shift :減少灰度變化FilterSize:過濾的尺寸
mean_image ( Image :ImageMean : MaskWidth, MaskHeight : )平滑圖像,原始灰度值的平均數MaskWidth: 過濾器的寬度面具
bin_threshold( Image : Region : : )自動確定閾值 Region:黑暗的區域的圖像
dyn_threshold( OrigImage, ThresholdImage : RegionDynThresh : Offset,LightDark : )
比較兩個像素的圖像像素RegionDynThresh(Out)分割區域Offset: 減少噪音引起的問題LightDark提取光明、黑暗或類似的地方?
dilation_circle( Region : RegionDilation : Radius : )擴張有一個圓形結構元素的地區 Radius圓半徑
complement( Region : RegionComplement : : )返還補充的區域
reduce_domain( Image, Region : ImageReduced : : )減少定義領域的圖像ImageReduced=Image- Region
opening_circle( Region : RegionOpening : Radius : )打開具有圓形結構元素的地區,平滑圖像的邊界。 Radius:半徑
dev_clear_window( : : : ) 清除視圖窗體
get_mbutton( : : WindowHandle : Row, Column, Button )原地等待直到鼠標按下
select_region_point( Regions : DestRegions : Row, Column : )選擇所有包含給定像素的區域
dilation_rectangle1( Region : RegionDilation : Width, Height : )擴張有矩形元素地區 Width構建的矩形的寬度
difference( Region, Sub : RegionDifference : : )計算兩個區域的差異
gen_region_line( : RegionLines : BeginRow, BeginCol, EndRow, EndCol : )計算區域(起始點和終點)中的線段
intersection( Region1, Region2 : RegionIntersection : : )計算兩個區域的交叉點
shape_trans( Region : RegionTrans : Type : )變換形狀,形狀取決於Type