加载中…
个人资料
HiCsun
HiCsun
  • 博客等级:
  • 博客积分:0
  • 博客访问:126,493
  • 关注人气:33
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

halcon函数disp_rectangle2

(2012-04-12 13:51:55)
标签:

杂谈

分类: halcon学习
disp_rectangle2 (Operator)

Name

disp_rectangle2 — Displays arbitrarily oriented rectangles.

显示任意角度的长方形

Synopsis

disp_rectangle2( : : WindowHandle, CenterRow, CenterCol, Phi, Length1, Length2 : )

Description

disp_rectangle2 draws one or several arbitrarily oriented rectangles in the output window. A rectangle is described by the center (CenterRow,CenterCol), the orientation Phi (in radians) and half the lengths of the edges Length1 and Length2. The procedures used to control the display of regions (e.g. set_draw, set_gray, set_draw) can also be used with rectangles. Several rectangles can be displayed with one call by using tuple parameters. For the use of colors with several rectangles, see set_color.

主要作用,在输出窗口显示一个或是多个任意角度的长方形,这个长方形的中心点为(CenterRow,CenterCol),方向为:Phi,长边的一半为:Length1,短边的一半为:Length2

Attention

The center must lie within the window boundaries.

Parameters

 

WindowHandle (input_control)

window (integer)

Window identifier.

 

CenterRow (input_control)

rectangle2.center.y(-array) (real / integer)

Row index of the center.

Default value: 48

Suggested values: 0, 64, 128, 256, 511

Typical range of values: 0 ≤ CenterRow ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 10

 

CenterCol (input_control)

rectangle2.center.x(-array) (real / integer)

Column index of the center.

Default value: 64

Suggested values: 0, 64, 128, 256, 511

Typical range of values: 0 ≤ CenterCol ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 10

 

Phi (input_control)

rectangle2.angle.rad(-array) (real / integer)

Orientation of rectangle in radians.

Default value: 0.0

Suggested values: 0.0, 0.785398, 1.570796, 3.1415926, 6.283185

Typical range of values: 0.0 ≤ Phi ≤ 6.283185 (lin)

Minimum increment: 0.01

Recommended increment: 0.1

 

Length1 (input_control)

rectangle2.hwidth(-array) (real / integer)

Half of the length of the longer side.

Default value: 48

Suggested values: 0, 64, 128, 256, 511

Typical range of values: 0 ≤ Length1 ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 10

 

Length2 (input_control)

rectangle2.hheight(-array) (real / integer)

Half of the length of the shorter side.

Default value: 32

Suggested values: 0, 64, 128, 256, 511

Typical range of values: 0 ≤ Length2 ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 10

Restriction: Length2 < Length1

Example


set_color(WindowHandle,'green') 

draw_region(MyRegion:WindowHandle) 

elliptic_axis(MyRegion,Ra,Rb,Phi) 

area_center(MyRegion,_,Row,Column) 

disp_rectangle2(WindowHandle,Row,Column,Phi,Ra,Rb).

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有