create_drawing_object_rectangle1 creates a rectangle aligned along the coordinate axis which can be modified interactively in a HALCON window by the user. The rectangle is defined by the coordinates Row1, Column1, Row2, and Column2 of its upper left and lower right corner. The created ...
create_drawing_object_rectangle1— Create a rectangle parallel to the coordinate axis which can be modified interactively. Signature Description These parameters can be queried any time withget_drawing_object_params, as well as its corresponding HALCON object withget_drawing_object_iconic. ...
*create_drawing_object_circle_sector(100,100, 80, 0, 3.14159, DrawID3) *create_drawing_object_ellipse(200,200, 0, 100, 60, DrawID3) *create_drawing_object_ellipse_sector(200,200, 0, 100, 60, 0, 3.14159, DrawID3) *create_drawing_object_rectangle1(100,100, 200, 200, DrawID3) *cre...
create_drawing_object_circle create_drawing_object_circle_sector create_drawing_object_ellipse create_drawing_object_ellipse_sector create_drawing_object_line create_drawing_object_rectangle1 create_drawing_object_rectangle2 create_drawing_object_text create_drawing_object_xld attach_drawing_object_to_window...
void Widget::on_btn_DrawRectangle_clicked() { HTuple Rect_ID; CreateDrawingObjectRectangle1(100,100,200,200,&Rect_ID); SetDrawingObjectParams(Rect_ID,"color","red"); qDebug()<<"Rect_ID"<<Rect_ID.D()<<endl; Drawing_Index.append(Rect_ID); ...
private Rectangle2 rectangle2 = new Rectangle2(); private void button_DrawLine_Click(object sender, EventArgs e) { drawingObject.CreateDrawingObjectLine(100, 100, 200, 200); //将绘图对象关联到Halcon窗口 hwindow.AttachDrawingObjectToWindow(drawingObject); ...
drawingObject.CreateDrawingObjectRectangle2(300,400,0,300,200); //将绘图对象关联到Halcon窗口 hwindow.AttachDrawingObjectToWindow(drawingObject); } privatevoidbutton_SaveRect_Click(objectsender,EventArgse) { HTupleparamName,param; paramName=newHTuple(newstring[]{"row","column","phi","length1","...
create_drawing_object_xxx To change the display style, e.g., color or line width, in which the drawing object is displayed, you could use: set_drawing_object_params Then you need to attach the drawing object to a specific HALCON window, so that the drawing object will be displayed and ...
HDrawingObject hDrawingObject = new HDrawingObject();hDrawingObject.CreateDrawingObjectRectangle2(100...
CreateDrawingObject(HDrawingObject.HDrawingObjectType.RECTANGLE1, new HTuple[] { 100, 100, 150, 250 }); hDrawingObjects.Add(hdrawObj); HW.HalconWindow.AttachDrawingObjectToWindow(hdrawObj); } } } 七、绘制ROI区域并展示模板匹配的结果 代码语言:javascript 代码运行次数:0 复制Cloud Studio 代码...