Halcon函數(不斷更新)

来源:互联网 发布:淘宝网布沙发 编辑:程序博客网 时间:2024/06/05 07:02
http://blog.csdn.net/xinrui_hhuc/article/details/5268922 

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

原创粉丝点击