private static void TestDrawContours() { CVImage image = new CVImage(100, 100, CVDepth.Depth8U, 1); image.DrawRectangle(new System.Drawing.Rectangle(10, 10, 20, 30), System.Drawing.Color.Red, 3); new BitmapViewer(image.ToBitmap()).ShowDialog(); CVImage res = image.DrawContours(); new BitmapViewer(res.ToBitmap()).ShowDialog(); }