set_color(WindowHandle, ['red', '#00ff00a0']) disp_circle(WindowHandle, [100,200,300], [200,300,100], [100,100,100]) set_colorreturns2(H_MSG_TRUE) if the window is valid and the passed colors are displayable on the screen. Otherwise an exception is raised. ...
rgb1_to_gray(Image,Image1)*将RGB图像转换为灰度图像 threshold (Image1, Region,60,100) set_color(WindowHandle,'blue')*设置输出颜色*参数1:窗口句柄*参数2:可以是halcon定义的颜色,见下图,也可以'#rrggbbaa'boundary (Region, RegionBorder,'outer') dev_display (RegionBorder) 在QtCreator中 看:https:...
rgb1_to_gray(Image,Image1) *将RGB图像转换为灰度图像 threshold (Image1, Region, 60, 100) set_color(WindowHandle,'blue') *设置输出颜色 *参数1:窗口句柄 *参数2:可以是halcon定义的颜色,见下图,也可以'#rrggbbaa' boundary (Region, RegionBorder, 'outer') dev_display (RegionBorder) 1. 2. 3....
set_color (Operator) Nameset_color— Set output color.Signatureset_color( : : WindowHandle, Color : ) Descriptionset_color defines the colors for region output in the window. The available colors can be queried with the operator query_color. In addition, the Color may be specified as ...
dev_set_color ('#00ff0040') gen_rectangle1 (Rectangle,320.96, 529.209, 514.248, 548.547) 这样,图片中的矩形就会显示成我们指定的颜色: 相关函数 dev开头的函数,就是设置系统相关的函数,一般和窗口显示有关,比如: *关窗口 dev_close_window()
set_color(WindowHandle, ['red', '#00ff00a0']) disp_circle(WindowHandle, [100,200,300], [200,300,100], [100,100,100]) Result set_colorreturns 2 (H_MSG_TRUE) if the window is valid and the passed colors are displayable on the screen. Otherwise an exception is raised. ...
ColorSet[5]:='spring green'ColorSet[6]:='orange red'ColorSet[7]:='cadet blue'ColorSet[8]:='light gray'ColorSet[9]:='medium slate blue'ColorSet[10]:='red'ColorSet[11]:='white'ColorSet[12]:='green'ColorSet[13]:='blue'ColorSet[14]:='yellow'ColorSet[15]:='pink'ColorSet[16]...
(1)dev_set_color():设置颜色; (2)dev_set_draw():设置区域显示方式,margin是轮廓显示,fill是填充显示; (3)dev_clear_window():没有参数,用于清理当前窗口内容; (4)dev_display():最重要的算子,可以显示图片、区域、轮廓等 2.文本显示(Text)
dev_set_color ('black') *窗口中画出reigon区域 draw_region (Region, WindowHandle) *定义仿射变换矩阵 hom_mat2d_identity (HomMat2DIdentity) *在齐次仿射变换矩阵中增加旋转变换 hom_mat2d_rotate (HomMat2DIdentity, rad(phi), 256, 256, HomMat2DRotate) ...
//Halcon下,红色半透明dev_set_color(‘#ff000080’)//Qt下Debug模式,蓝色半透明SetColor(hv_Window,"#0000ff80"); 但是在Qt的Release下不能使用十六进制来代替颜色设定,只能设定具体的颜色, color颜色color颜色color颜色color颜色color颜色 black黑色white白色red红色green绿色blue蓝色 ...