/// <summary>Paints the ROI into the supplied window</summary> /// <param name="window">HALCON window</param> public override void draw(HalconDotNet.HWindow window) { window.DispRectangle1(row1, col1, row2, col2); window.DispRectangle2(row1, col1, 0, 5, 5); window.DispRectangle2(row1, col2, 0, 5, 5); window.DispRectangle2(row2, col2, 0, 5, 5); window.DispRectangle2(row2, col1, 0, 5, 5); window.DispRectangle2(midR, midC, 0, 5, 5); }
/// <summary>Paints the ROI into the supplied window</summary> /// <param name="window">HALCON window</param> public override void draw(HalconDotNet.HWindow window) { var width = 15;//original 5; var height = 15;//original 10; window.DispRectangle1(row1, col1, row2, col2); window.DispRectangle2(row1, col1, 0, width, height); window.DispRectangle2(row1, col2, 0, width, height); window.DispRectangle2(row2, col2, 0, width, height); window.DispRectangle2(row2, col1, 0, width, height); window.DispRectangle2(midR, midC, 0, width, height); }