




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、read_image (WaferDies, wafer_dies)read_image (圖片在程序中的名稱, 圖片在計(jì)算機(jī)中的名稱)reopen_window_fit (WaferDies, 700, 0, 0, WindowHandle)reopen_window_fit (圖片在程序中的名稱, 700, 0, 0, WindowHandle)init_font (WindowHandle, -1, 2)和字體有關(guān)的一個(gè)命令get_window_extents (WindowHandle, _, _, WindowWidth, WindowHeight)設(shè)置窗口大小和位置dev_upda
2、te_all (off)把所有的dev_update從on設(shè)到off,這似乎是設(shè)定文本顯示的滾動(dòng)與否dev_set_draw (margin)定義區(qū)域填充模式。如果DrawMode設(shè)置為fill,輸出地區(qū)被填滿,如果設(shè)置為margin,只有輪廓顯示出來(lái)。get_image_pointer1 (WaferDies, _, _, Width, Height)get_image_pointer1 ( Image : : : Pointer, Type, Width, Height )Access the pointer of a channel.The operator HYPERLINK get_
3、image_pointer1.htmlget_image_pointer1 returns a pointer to the first channel of the image HYPERLINK l ImageImage. Additionally, the image type (HYPERLINK l TypeType = byte, int2, uint2, etc.) and the image size (width and height) are returned. Consequently, a direct access to the image data in the H
4、ALCON database via the pointer is possible from the programming language in which HALCON is used. An image is stored in HALCON linearized in row major order, i.e., line by line.指令get_image_pointer1返回一個(gè)圖像WaferDies的第一通道的指針。此外,圖像類(lèi)型(Type =byte,INT2,uint2等)和圖像尺寸(寬度和高度)返回。因此,直接通過(guò)訪問(wèn)指針來(lái)獲取HALCON的數(shù)據(jù)庫(kù)中的圖像數(shù)據(jù),在使
5、用了HALCON語(yǔ)言的程序中是可行的。圖像在HALCON以線性行模式存儲(chǔ),也就是一行一行的。dev_display (WaferDies)在活動(dòng)圖形窗口顯示一個(gè)圖像對(duì)象(圖像,地區(qū)或XLD)。這相當(dāng)于對(duì)一個(gè)窗口內(nèi)的變量變雙擊圖標(biāo)。write_message (WindowHandle, -1, -1, Image of a wafer, true)write_message (WindowHandle, WindowHeight - 30, -1, Press Run to continue, true)在窗口上寫(xiě)文字stop ()停止* * 1. Determine the size of
6、the dies by using auto correlation 確定大小用自相關(guān)* rft_generic (WaferDies, ImageFFT, to_freq, none, complex, Width)rft_generic ( Image : ImageFFT輸出量 : Direction, Norm, ResultType, Width : )輸出量rft_generic用于計(jì)算快速傅立葉變換輸入圖像的形象。相反,fft_generic,fft_image和fft_image_inv,一個(gè)事實(shí),即在正向輸入圖像變換是實(shí)值圖像(即不是一個(gè)復(fù)雜的圖像)使用。在這種情況下,復(fù)雜的
7、輸出圖像具有冗余。在圖像的右半部分的值是在圖像的左半部分的相應(yīng)值的復(fù)共軛。因此,運(yùn)行時(shí)和可節(jié)省內(nèi)存僅計(jì)算和存儲(chǔ)的復(fù)雜圖像的左半邊。與resultType參數(shù)可用于指定結(jié)果的圖像類(lèi)型逆變換(方向=from_freq)。在正變換(方向=to_freq),與resultType必須設(shè)置為complex。參數(shù)方向確定是否應(yīng)進(jìn)行變換到頻域空間域或進(jìn)入回來(lái)。為方向=to_freq輸入圖像必須有一個(gè)實(shí)數(shù)型,即一個(gè)復(fù)雜的圖像可能無(wú)法用作輸入。所有圖片,可以變成一個(gè)真正的圖像類(lèi)型轉(zhuǎn)換類(lèi)型的支持。在這種情況下,輸出是一個(gè)尺寸(W / 2 +1)* H,其中W和H是寬度和高度復(fù)雜的圖像輸入圖像。在這種模式下,指數(shù)-
8、1用于變換(見(jiàn)fft_generic)。為方向=from_freq,輸入圖像必須是復(fù)雜的。在這種情況下,輸入圖像的大小不足以決定輸出圖像的大小。這必須通過(guò)設(shè)置寬度為一個(gè)有效的值,即2 *的W - 2或2 *的W - 1,其中W是復(fù)雜的圖像的寬度。在這種模式下,指數(shù)1用于在變換。正火因子可設(shè)置規(guī)范,并且可以利用的量,none, sqrt和n。用戶必須確保參數(shù)相一致。這意味著,用于規(guī)范因素向前和向后轉(zhuǎn)換必須寬* h時(shí)產(chǎn)量成倍增加。correlation_fft (ImageFFT, ImageFFT, CorrelationFFT)correlation_fft ( ImageFFT1, Imag
9、eFFT2 : ImageCorrelation : : )correlation_fft計(jì)算了傅立葉變換在頻域輸入圖像的相關(guān)性。其相關(guān)的計(jì)算方法是乘以的ImageFFT2復(fù)共軛ImageFFT1。應(yīng)當(dāng)指出,為了實(shí)現(xiàn)在空間域的相關(guān)性的正確比例,經(jīng)營(yíng)者fft_generic或 Norm =none必須用于正變換和fft_generic或rft_generic與Norm =n為rft_generic逆變換。如果ImageFFT1和ImageFFT2含有相同數(shù)量的圖像,相應(yīng)的圖像相關(guān)成對(duì)。否則,ImageFFT2只能包含一個(gè)單一的形象。在這種情況下,為每一個(gè)相關(guān)性的ImageFFT1與ImageFF
10、T2形象。rft_generic (CorrelationFFT, Correlation, from_freq, n, real, Width)#在這里創(chuàng)建并輸出了Correlation#在這里創(chuàng)建并輸出了Correlation* Exclude local maxima at the image border. It is sufficient* to extract the maxima in the upper left quarter of the image because* the autocorrelation is an even function.排除局部極大值在圖像邊界。
11、它足以在上提取圖像的左邊季度極大,因?yàn)樽韵嚓P(guān)是偶函數(shù)。gen_rectangle1 (Rectangle, 1, 1, Height/2, Width/2)#在這里創(chuàng)建并輸出了Rectangle#在這里創(chuàng)建并輸出了Rectanglegen_rectangle1 ( : Rectangle : Row1, Column1, Row2, Column2 : )Create a rectangle parallel to the coordinate axes.The operator HYPERLINK gen_rectangle1.htmlgen_rectangle1 generates one
12、 or more rectangles parallel to the coordinate axes which are described by the upper left corner (HYPERLINK l Row1Row1, HYPERLINK l Column1Column1) and the lower right corner (HYPERLINK l Row2Row2, HYPERLINK l Column2Column2). More than one region can be created by passing a tuple of corner points.
13、The coordinate system runs from (0,0) (upper left corner) to (Width-1,Height-1). See HYPERLINK get_system.htmlget_system and HYPERLINK reset_obj_db.htmlreset_obj_db in this context. 創(chuàng)建一個(gè)矩形平行于坐標(biāo)軸。操作員 HYPERLINK gen_rectangle1.htmlgen_rectangle1生成一個(gè)或多個(gè)矩形平行于坐標(biāo)是由左上角(HYPERLINK l Row1Row1, HYPERLINK l Colu
14、mn1Column1)和右下角 (HYPERLINK l Row2Row2, HYPERLINK l Column2Column2)中所述軸。一個(gè)以上的地區(qū)可以通過(guò)創(chuàng)建一個(gè)元組的角點(diǎn)。系統(tǒng)運(yùn)行的坐標(biāo)從(0,0)(左上角)至(寬度- 1,身高- 1)??吹竭@方面get_system和reset_obj_db。reduce_domain (Correlation, Rectangle, CorrelationReduced)reduce_domain ( Image, Region : ImageReduced : : )Reduce the domain of an image.The oper
15、ator HYPERLINK reduce_domain.htmlreduce_domain reduces the definition domain of the given image to the indicated region. The new definition domain is calculated as the intersection of the old definition domain with the region. Thus, the new definition domain can be a subset of the region. The size o
16、f the matrix is not changed.降低圖像的領(lǐng)域。操作員reduce_domain減少了給定圖像的定義域到指定的區(qū)域。新的定義域是計(jì)算為與該地區(qū)的舊定義域的交集。因此,新的定義域可以是該地區(qū)的一個(gè)子集。矩陣的大小是沒(méi)有改變。* * Extract the local maxima of the auto correlation function提取的自相關(guān)函數(shù)的局部極大值local_max_sub_pix (CorrelationReduced, gauss, 2, 5000000, Row, Col)local_max_sub_pix ( Image : : Filte
17、r, Sigma, Threshold : Row, Col )Subpixel precise detection of local maxima in an image.HYPERLINK local_max_sub_pix.htmllocal_max_sub_pix extracts local maxima from the image HYPERLINK l ImageImage with subpixel precision. To do so, in each point the input image is approximated by a quadratic polynom
18、ial in x and y and subsequently the polynomial is examined for local maxima. The partial derivatives, which are necessary for setting up the polynomial, are calculated either with various Gaussian derivatives or using the facet model, depending on HYPERLINK l FilterFilter. In the first case, HYPERLI
19、NK l SigmaSigma determines the size of the Gaussian kernels, while in the second case, before being processed the input image is smoothed by a Gaussian whose size is determined by HYPERLINK l SigmaSigma. Therefore, facet results in a faster extraction at the expense of slightly less accurate results
20、. A point is accepted to be a local maximum if both eigenvalues of the Hessian matrix are smaller than -HYPERLINK l ThresholdThreshold. The eigenvalues correspond to the curvature of the gray value surface.亞像素精確的檢測(cè)圖像中的局部最大值。 local_max_sub_pix提取物與亞像素精度的圖像HYPERLINK l ImageImage 局部極大值。為此,在每個(gè)點(diǎn)的輸入圖像近似為二次
21、多項(xiàng)式在x和y以及隨后的多項(xiàng)式是局部最大值檢查。偏導(dǎo)數(shù),這是設(shè)立多項(xiàng)式必要的,是計(jì)算出來(lái)的各種衍生工具或使用高斯面模型篩選而定。在第一種情況下,適馬決定了高斯核的大小,而在第二種情況下,在所處理的輸入圖像是由高斯,其大小是由西格瑪確定平滑。因此,在一個(gè)不太準(zhǔn)確的結(jié)果稍快費(fèi)用提取面的結(jié)果。一個(gè)點(diǎn)是接受的,如果是本地最大的Hessian矩陣特征值均小于門(mén)限。特征值對(duì)應(yīng)的灰度值表面曲率。* * Get the size of the dies* Find maximum that is closest to the origin. This maximum* corresponds to the o
22、pposite rectangle corner of the die.獲取大小的模具。查找最大值最接近原點(diǎn)。對(duì)應(yīng)于這個(gè)最大的模具矩形對(duì)面角落。distance_pp (gen_tuple_const(|Row|,0)創(chuàng)建一個(gè)數(shù)組,長(zhǎng)度為Row的長(zhǎng)度,每個(gè)元素的值為0, gen_tuple_const(|Col|,0), Row, Col, Distance)創(chuàng)建一個(gè)數(shù)組,長(zhǎng)度為Row的長(zhǎng)度,每個(gè)元素的值為0distance_pp ( : : Row1, Column1, Row2, Column2 : Distance )Calculate the distance between two
23、points.The operator HYPERLINK distance_pp.htmldistance_pp calculates the distance between pairs of points according to the following formula: HYPERLINK l DistanceDistance = sqrt(HYPERLINK l Row1Row1-HYPERLINK l Row2Row2)2+(HYPERLINK l Column1Column1-HYPERLINK l Column2Column2)2)The result is returne
24、d in HYPERLINK l DistanceDistance. 計(jì)算兩點(diǎn)之間的距離。經(jīng)營(yíng)者之間的distance_pp計(jì)算按下列公式點(diǎn)對(duì)距離:距離=開(kāi)方(第ROW1 - ROW2行) 2 +(column1的- COLUMN2列) 2)的結(jié)果是在距離返回。tuple_gen_const ( : : Length, Const : Newtuple )Generate a tuple of a specific length and initialize its elements.HYPERLINK tuple_gen_const.htmltuple_gen_const generates
25、 a new tuple in HYPERLINK l NewtupleNewtuple. The input parameter HYPERLINK l LengthLength determines the number of elements for the new tuple. Thus HYPERLINK l LengthLength may only consist of a single number. If HYPERLINK l LengthLength contains a floating point number, this may only represent an
26、integer value (without fraction). The data type and value of each element of the new generated tuple is determined by the input parameter HYPERLINK l ConstConst that may only consist of a single element. All elements in HYPERLINK l NewtupleNewtuple have got the same data type and value as the single
27、 element in HYPERLINK l ConstConst.生成元組的一個(gè)特定的長(zhǎng)度和初始化它的元素. tuple_gen_const生成一個(gè)Newtuple新的tuple。輸入?yún)?shù)的長(zhǎng)度決定的元素為新的元組數(shù)目。因此長(zhǎng)度可能只包含一個(gè)數(shù)字。如果長(zhǎng)度包含一個(gè)浮點(diǎn)數(shù),這可能僅僅代表一個(gè)整數(shù)(無(wú)分?jǐn)?shù))。數(shù)據(jù)類(lèi)型和新產(chǎn)生的每個(gè)元組元素的值是由輸入?yún)?shù)常量,可能只包含一個(gè)元素。在Newtuple所有元素都得到了相同的數(shù)據(jù)類(lèi)型作為常量單一元素和價(jià)值。SortedIndex := sort_index從大到小排序,其序號(hào)為,1,2,3,4,0(Distance)從大到小排序,其序號(hào)為,1,2,3
28、,4,0tuple_sort_index ( : : Tuple : Indices )Sorts the elements of a tuple and returns the indices of the sorted tuple.HYPERLINK tuple_sort_index.htmltuple_sort_index sorts all elements of HYPERLINK l TupleTuple in ascending order and returns the indices of the elements of the sorted tuple (in relati
29、on to the input tuple HYPERLINK l TupleTuple) with HYPERLINK l IndicesIndices. As a precondition the single elements of HYPERLINK l TupleTuple must be comparable. Thus HYPERLINK l TupleTuple must either exclusively consist of strings or it must only contain (integer or floating point) numbers. In th
30、e latter case integers and floating point numbers may be mixed.排序的元素,并返回一個(gè)元組的元組的排序指標(biāo)。 tuple_sort_index升序所有元組元素,并返回該元素的元組指數(shù)的排序與指數(shù)(有關(guān)輸入元組元組)。作為一個(gè)先決條件的元組的單一元素必須具有可比性。因此,元組必須要么完全由字符串或它必須只包含(整數(shù)或浮點(diǎn))號(hào)碼。在后一種情況整數(shù)和浮點(diǎn)數(shù)可以混合使用。Row1 := RowSortedIndex0第0個(gè)元素,最小的一個(gè)第0個(gè)元素,最小的一個(gè)Col1 := ColSortedIndex0DiagonalLength :=
31、sqrt(Row1*Row1 + Col1*Col1)tuple_sqrt ( : : T : Sqrt )Compute the square root of a tuple.HYPERLINK tuple_sqrt.htmltuple_sqrt computes the square root of the input tuple HYPERLINK l TT. The square root is always returned as a floating point number. The square root of a string is not allowed.計(jì)算一個(gè)元組的平方
32、根。 tuple_sqrt計(jì)算輸入元組T的平方根是始終作為一個(gè)浮點(diǎn)數(shù)返回平方根。字符串的平方根是不允許的。Phi := atan2猜測(cè)可能是取角度(Row1,Col1)猜測(cè)可能是取角度tuple_atan2 ( : : Y, X : ATan )Compute the arctangent of a tuple for all four quadrants.HYPERLINK tuple_atan2.htmltuple_atan2 computes the arctangent of the input tuples HYPERLINK l YY/HYPERLINK l XX while tr
33、eating all four quadrants correctly. The arctangent is always returned as a floating point number. The arctangent of a string is not allowed.計(jì)算一個(gè)元組所有四個(gè)象限反正切。 tuple_atan2計(jì)算輸入的反正切值組是/ X,同時(shí)正確地對(duì)待所有四個(gè)象限??偸欠祷氐姆凑袨楦↑c(diǎn)數(shù)。字符串的反正切值是不允許的。DieWidth := DiagonalLength * cos(Phi)DieHeight := DiagonalLength * sin(Phi)
34、* * The center, the first maximum, and the second maximum* together define the orientation and the size of the dies.該中心的第一個(gè)最大,第二個(gè)最大的共同定義的方向和大小的模具。dev_set_color (blue)dev_set_color ( : : ColorName : )Set one or more output colors.HYPERLINK dev_set_color.htmldev_set_color defines the colors for region
35、 and line oriented output in the graphics windows. The available colors can be queried with the operator HYPERLINK query_color.htmlquery_color. The “colors” black and white are available for all screens. If colors are used that are not displayable on the screen, HALCON can choose a similar, displaya
36、ble color of the output. For this, set_check(:color:) must be called.The defined colors are used until HYPERLINK dev_set_color.htmldev_set_color or HYPERLINK dev_set_colored.htmldev_set_colored is called.Colors are defined for all graphics windows in contrast to the operator HYPERLINK set_color.html
37、set_color.AttentionIf HYPERLINK dev_set_color.htmldev_set_color should be used for exported Code (C+), please note the description of HYPERLINK set_color.htmlset_color due to the different semantics in C+. 設(shè)置一個(gè)或多個(gè)輸出的色彩。 dev_set_color定義區(qū)域和圖形化輸出Windows行的顏色??捎玫念伾梢圆樵兣c運(yùn)營(yíng)商query_color。 “顏色”黑和白是可用于所有的屏幕上。如
38、果顏色使用的是屏幕上沒(méi)有顯示的,HALCON的可以選擇一個(gè)類(lèi)似的,輸出顯示的顏色。為此,set_check (:顏色的:)必須被調(diào)用。定義的顏色使用,直至dev_set_color或dev_set_colored被調(diào)用。顏色定義為與此相反的操作set_color所有的圖形窗口。注意如果dev_set_color出口代碼應(yīng)使用(C + +中),請(qǐng)記下set_color說(shuō)明由于不同的語(yǔ)義在C + +。gen_cross_contour_xld (Crosses, Row, Col, 8, 0.785398)gen_cross_contour_xld ( : Cross : Row, Col, Si
39、ze, Angle : )Generate one XLD contour in the shape of a cross for each input point.HYPERLINK gen_cross_contour_xld.htmlgen_cross_contour_xld generates an XLD contour in the shape of a cross for each input point (HYPERLINK l RowRow,HYPERLINK l ColCol). Conceptually, the contour consists of two lines
40、of length HYPERLINK l SizeSize, which intersect exactly in the input point. Their orientation is determined by HYPERLINK l AngleAngle. The cross is returned in HYPERLINK l CrossCross. If there are multiple points to be processed, their coordinates must be passed as tuples.生成一個(gè)XLD在為每一個(gè)輸入點(diǎn)十字形的輪廓。gen_c
41、ross_contour_xld產(chǎn)生在為每一個(gè)輸入點(diǎn)(行,列)十字XLD輪廓。從概念上講,外形由兩條線的長(zhǎng)度大小,在相交點(diǎn)的準(zhǔn)確輸入。他們的方向是確定的視角??缈缰蟹祷?。如果有多個(gè)點(diǎn)進(jìn)行處理,他們的坐標(biāo)必須為元組通過(guò)。gen_ellipse_contour_xld (Circle, Row1, Col1, 0, 8, 8, 0, 6.28318, positive, 1.5)gen_ellipse_contour_xld(:ContEllipse:Row,Column,Phi,Radius1,Radius2,StartPhi,EndPhi,PointOrder,Resolution:)Crea
42、tion of an XLD contour corresponding to an elliptic arc.HYPERLINK gen_ellipse_contour_xld.htmlgen_ellipse_contour_xld creates one or more elliptic arcs or closed ellipses. Ellipses are specified by their center (HYPERLINK l RowRow, HYPERLINK l ColumnColumn), the orientation of the main axis HYPERLIN
43、K l PhiPhi, the length of the larger half axis HYPERLINK l Radius1Radius1, and the length of the smaller half axis HYPERLINK l Radius2Radius2. In addition to that, elliptic arcs are characterized by the angle of the start point HYPERLINK l StartPhiStartPhi, the angle of the end point HYPERLINK l End
44、PhiEndPhi, and the point order HYPERLINK l PointOrderPointOrder along the boundary. Both angles refer to the coordinate system of the ellipse, i.e. relative to the main axis and in a mathematical positive direction. Thus, the two main poles correspond to the angles 0 and PI, the two minor poles to t
45、he angles PI/2 and 3*pi/2. To create a closed ellipse the values 0 and 2*PI (with positive point order) have to be passed to the operator. All angles HYPERLINK l PhiPhi, HYPERLINK l StartPhiStartPhi, HYPERLINK l EndPhiEndPhi take arbitrary values and are mapped internally to the interval 0,2*PI. The
46、 resolution of the resulting contours HYPERLINK l ContEllipseContEllipse is controlled via HYPERLINK l ResolutionResolution containing the maximum Euclidean distance between neighboring contour points.一個(gè)XLD輪廓對(duì)應(yīng)一個(gè)橢圓弧.gen_ellipse_contour_xld創(chuàng)作創(chuàng)建一個(gè)或多個(gè)圓弧或橢圓封閉橢圓。由他們指定的橢圓形中心(HYPERLINK l RowRow, HYPERLINK
47、l ColumnColumn),該橢圓的主軸線沿HYPERLINK l PhiPhi方向,規(guī)模較大的半軸HYPERLINK l Radius1Radius1的長(zhǎng)度和較小的半主軸軸HYPERLINK l Radius2Radius2長(zhǎng)度。除此之外,橢圓弧的特點(diǎn)是對(duì)角HYPERLINK l StartPhiStartPhi起點(diǎn),在終點(diǎn)HYPERLINK l EndPhiEndPhi角,沿邊界點(diǎn)順序PointOrder。這兩個(gè)角涉及到橢圓的坐標(biāo)系統(tǒng),即相對(duì)于主軸線,并在數(shù)學(xué)積極的方向。因此,這兩個(gè)主極對(duì)應(yīng)于角度0和PI,這兩個(gè)極點(diǎn)的角度輕微的PI / 2和3 */ 2。要?jiǎng)?chuàng)建一個(gè)封閉的橢圓值0和2
48、*PI(在正面點(diǎn)順序)要傳遞給經(jīng)營(yíng)者。各個(gè)角度HYPERLINK l PhiPhi, HYPERLINK l StartPhiStartPhi, HYPERLINK l EndPhiEndPhi 采取任意值,并映射到內(nèi)部區(qū)間0,2 *PI。由此產(chǎn)生的ContEllipse是通過(guò)HYPERLINK l ResolutionResolution包含的最大的歐幾里德空間距離控制輪廓點(diǎn)輪廓。dev_display (Correlation)dev_display ( Object : : : )Displays image objects in the current graphics window.
49、HYPERLINK dev_display.htmldev_display displays an image object (image, region, or XLD) in the active graphics window. This is equivalent to a double click on an icon variable inside the variable window.AttentionIf HYPERLINK dev_display.htmldev_display should be used for exported Code (C+), please no
50、te the description of HYPERLINK disp_obj.htmldisp_obj due to the different semantics in C+.Parameters當(dāng)前圖形窗口中顯示圖像對(duì)象。dev_display在窗口中顯示一個(gè)圖形圖像主動(dòng)對(duì)象(圖像,地區(qū)或XLD)。這相當(dāng)于在一個(gè)窗口內(nèi)的變量變雙擊圖標(biāo)。 注意如果dev_display應(yīng)注意對(duì)出口代碼使用(C + +中),請(qǐng)記下disp_obj由于不同的語(yǔ)義描述,在C + +。 dev_display (Crosses)顯示十字叉顯示十字叉dev_display (Circle)顯示橢圓顯示橢圓dev_
51、set_color (green)dev_display (Rectangle)顯示矩形框顯示矩形框write_message (WindowHandle, -1, -1, Autocorrelation, region of interest, and local maxima, true)write_message (WindowHandle, WindowHeight - 30, -1, Press Run to continue, true)stop ()* * Visualize the extracted size of the dies可視化提取圖片大小gen_rectangle
52、2_contour_xld (Die, Height/2, Width/2, 0, DieWidth/2, DieHeight/2)gen_rectangle2_contour_xld(:Rectangle : Row, Column, Phi, Length1, Length2 : )Create an XLD contour in the shape of a rectangle.HYPERLINK gen_rectangle2_contour_xld.htmlgen_rectangle2_contour_xld creates one or more XLD contours in th
53、e shape of a rectangle with arbitrary orientation. The rectangle has the center (HYPERLINK l RowRow, HYPERLINK l ColumnColumn), the orientation HYPERLINK l PhiPhi, and the half edge lengths HYPERLINK l Length1Length1 and HYPERLINK l Length2Length2. The angle HYPERLINK l PhiPhi must be given in radia
54、ns and specifies the angle between the horizontal axis and the edge with the half length HYPERLINK l Length1Length1 in the mathematically positive direction (counterclockwise). More than one XLD contour can be created by passing a tuple of rectangle parameters.創(chuàng)建一個(gè)矩形的形狀XLD輪廓。gen_rectangle2_contour_x
55、ld中創(chuàng)建一個(gè)矩形形狀任意方向的一個(gè)或多個(gè)XLD輪廓。該矩形的中心(HYPERLINK l RowRow, HYPERLINK l ColumnColumn),方向HYPERLINK l PhiPhi,半長(zhǎng)邊HYPERLINK l Length1Length1 和HYPERLINK l Length2Length2。HYPERLINK l PhiPhi 角度必須以弧度,并指定之間的水平軸,與半長(zhǎng)長(zhǎng)度1在數(shù)學(xué)正方向(逆時(shí)針?lè)较颍┻吘壗?。不止一個(gè)XLD輪廓可以通過(guò)創(chuàng)建一個(gè)矩形參數(shù)元組。reopen_window_fit (WaferDies, 700, 0, 0, WindowHandle)ini
56、t_font (WindowHandle, -1, 2)dev_display (WaferDies)dev_set_color (blue)dev_display (Die)write_message (WindowHandle, -1, -1, Extracted die size, true)write_message (WindowHandle, WindowHeight - 30, -1, Press Run to continue, true)stop ()* * 2. Determine the position of the dies by using shape-based
57、matching* 2。確定位置通過(guò)使用基于形狀匹配die圖片LineWidth := 7LineWidthFraction := 0.6* * Generate an artificial model image of the lines between the dies生成die圖片之間的行人工模范形象gen_image_const (Template, byte, Width, Height)gen_image_const ( : Image : Type, Width, Height : )Create an image with constant gray value.The ope
58、rator HYPERLINK gen_image_const.htmlgen_image_const creates an image of the indicated size. The height and width of the image are determined by HYPERLINK l HeightHeight and HYPERLINK l WidthWidth. HALCON supports the following image types: byte (1 byte per pixel, value area: 0.255) int1 (1 byte per
59、pixel, signed) int2 (2 bytes per pixel, signed) uint2 (2 bytes per pixel, unsigned) int4 (4 bytes per pixel, signed) real (4 bytes per pixel) complex (two real matrices) vector_field (two real matrices) dir (1 byte per pixel, value area: 0.180) cyclic (1 byte per pixel; cyclic value area: 0.255).The
60、 default value 0 is set via the operator HYPERLINK set_system.htmlset_system(init_new_image,). 創(chuàng)建具有恒定灰度值的圖像。操作員gen_image_const創(chuàng)建一個(gè)指定大小的圖片。高度和寬度的圖像是由高度和寬度。 HALCON的支持下列圖像類(lèi)型:scale_image (Template, Template, 1, 128)scale_image ( Image : ImageScaled : Mult, Add : )Scale the gray values of an image.The op
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 湖北商貿(mào)學(xué)院《天然藥物化學(xué)研究前沿》2023-2024學(xué)年第二學(xué)期期末試卷
- 玉溪農(nóng)業(yè)職業(yè)技術(shù)學(xué)院《巖土工程測(cè)試技術(shù)》2023-2024學(xué)年第二學(xué)期期末試卷
- 徐州工程學(xué)院《攝影與影像基礎(chǔ)》2023-2024學(xué)年第二學(xué)期期末試卷
- 長(zhǎng)治幼兒師范高等專(zhuān)科學(xué)校《智能時(shí)代下的創(chuàng)新創(chuàng)業(yè)實(shí)踐》2023-2024學(xué)年第二學(xué)期期末試卷
- 廣州幼兒師范高等專(zhuān)科學(xué)?!对O(shè)計(jì)素描》2023-2024學(xué)年第二學(xué)期期末試卷
- 廣東江門(mén)幼兒師范高等專(zhuān)科學(xué)?!犊萍颊撐膶?xiě)作與學(xué)術(shù)規(guī)范》2023-2024學(xué)年第二學(xué)期期末試卷
- 浙江工商大學(xué)《跨國(guó)企業(yè)經(jīng)營(yíng)與管理》2023-2024學(xué)年第二學(xué)期期末試卷
- 第15課《白楊禮贊》教學(xué)設(shè)計(jì) 2024-2025學(xué)年統(tǒng)編版語(yǔ)文八年級(jí)上冊(cè)
- 隆化租房合同范本
- 全國(guó)江西科學(xué)技術(shù)版小學(xué)信息技術(shù)六年級(jí)下冊(cè)第一單元第1課《控制的概念》教學(xué)設(shè)計(jì)
- 《客戶服務(wù)與管理》課程標(biāo)準(zhǔn)
- 面向智能制造的數(shù)字孿生技術(shù)在工業(yè)優(yōu)化中的應(yīng)用研究
- (完整版)山東春季高考信息技術(shù)類(lèi)技能考試題目
- (完整版)土的參數(shù)換算(計(jì)算飽和重度)
- PALL過(guò)濾器專(zhuān)題培訓(xùn)課件
- 林業(yè)基礎(chǔ)知識(shí)考試復(fù)習(xí)題庫(kù)(濃縮500題)
- 鐵路土工試驗(yàn)培訓(xùn)課件
- 雙膜法1500ta硫氰酸紅霉素項(xiàng)目可行性研究報(bào)告
- 信息化項(xiàng)目前期準(zhǔn)備
- 220kV升壓站工程施工組織設(shè)計(jì)
- 科技成果-企業(yè)污染物排放大數(shù)據(jù)監(jiān)控及知識(shí)圖譜構(gòu)建
評(píng)論
0/150
提交評(píng)論