Exemple #1
0
        /// <summary>Paints the ROI into the supplied window</summary>
        /// <param name="window">HALCON window</param>
        public override void draw(hvppleDotNet.HWindow window, int imageWidth, int imageHeight)
        {
            double littleRecSize = getHandleWidth(imageWidth, imageHeight);

            window.DispRectangle1(row1, col1, row2, col2);

            window.SetDraw("fill");
            window.DispRectangle2(row1, col1, 0, littleRecSize, littleRecSize);
            window.DispRectangle2(row1, col2, 0, littleRecSize, littleRecSize);
            window.DispRectangle2(row2, col2, 0, littleRecSize, littleRecSize);
            window.DispRectangle2(row2, col1, 0, littleRecSize, littleRecSize);
            window.DispRectangle2(midR, midC, 0, littleRecSize, littleRecSize);
            //window.DispRectangle2((row1 + row2) / 2, col1, 0, littleRecSize, littleRecSize);
            //window.DispRectangle2((row1 + row2) / 2, col2, 0, littleRecSize, littleRecSize);
            //window.DispRectangle2(row1, (col1 + col2) / 2, 0, littleRecSize, littleRecSize);
            //window.DispRectangle2(row2, (col1 + col2) / 2, 0, littleRecSize, littleRecSize);
            window.SetDraw("margin");
        }