2.1 dev_set_draw dev_set_draw 定义区域的填充模式。如果 DrawMode 设置为“filled”,则区域显示为填充,如果设置为“margin”,则仅显示轮廓。在 'margin' 模式下,轮廓的外观会受到 dev_set_line_width、set_line_approx 和 set_line_style 的影响。 1)算子形式 dev_set_draw( : : DrawMode : ) 2)参数...
dev_set_colored (12) dev_display (SelectedEdges) disp_message (WindowHandle, 'Extracted edges', 'window', 0, 0, 'black', 'true') disp_continue_message (WindowHandle, 'black', 'true') stop () dev_clear_window () disp_message (WindowHandle, 'Performing self-calibration...', 'window'...
disp_continue_message(WindowID,’black’,’true’)//显示继续提示信息 stop() skeleton(RegionDialtion,Skeleton) //计算区域的中轴,见例程:surface_scratch.hdev connection(Skeleton,Errors) //连通操作,以便后面进行区域选择 dev_set_colored(12) //设置颜色 dev_display(Image) //显示原图 dev_display(Errors...
dev_set_color ('blue') dev_display (Basins) disp_continue_message (WindowHandle, 'black', 'true') stop () * intersection (Basins, SelectedRegions, SegmentedPellets) dev_display (Image) dev_set_colored (12) dev_display (SegmentedPellets) disp_continue_message (WindowHandle, 'black', 'true...
dev_set_colored - 设置多个输出颜色。 用法 dev_set_colored( : : NumColors : ) 描述 dev_set_colored可以使用一组NumColors预定义颜色以不同的颜色在图形窗口中显示region,XLD和其他geometrical对象的元组。 通过算子query_colored可以查询NumColors的有效值。
dev_set_colored (12) dev_open_window (Height/2 + 68, 0, Width/2, Height/16, 'light gray', WindowHandleButton) dev_set_part (0, 0, Height/16 - 1, Width/2 -1) write_string (WindowHandleButton, ' click here with left mouse button to exit loop')//写字符 ...
devupdateoff关闭窗口更新readimageimageletters读取图片letters为图片名称devclosewindow关闭窗口getimagesizeimagewidthheight获取图片宽高devopenwindowfitimageimage0011windowhandle打开适合图片大小的窗口devsetdrawfill设计区域填充方式devsetcolored12区域颜色setdisplayfontwindowhandle16monotruefalse设置窗口显示字体devdisplay...
region (IntermediateBalls, FinalBalls, 'first_point', 'true', 'column')dev_display (Bond)dev_set_colored (12)dev_display (FinalBalls)disp_continue_message (WindowID, 'black', 'true')stop ()smallest_circle (FinalBalls, Row, Column, Radius)NumBalls := |Radius|Diameter := 2 * Radius...
dev_clear_window () dev_open_window (0, 0, Width / 2, Height / 2, 'black', WindowHandle) dev_display (Image) dev_set_colored (12) dev_display (Contours) dev_set_color ('white') area_center_xld (Contours, Area, Row, Column, PointOrder) ...
dyn_threshold(img,ImageMean,RegionDynThresh,5,'dark')*->extract connected components 提取连通分量*由分割出来的DarkPixels获得连通区域到ConnectedRegions***得到的连通区域为:connection(RegionDynThresh,ConnectedRegions)*设置混合输出颜色为12种dev_set_colored(12)dev_display(ConnectedRegions)disp_continue_message...