I am trying to use the 'FillPoly' function within Mat and am having the issue that the points will not connect
Example code:
Mat i = new Mat();
i = new Mat(512, 512, MatType.CV_8UC1, s: Scalar.All(0));
points_list = new List<List<Point>>();
points_list.Add(new List<Point> { new Point(128, 128)});
points_list.Add(new List<Point> { new Point(128, 256) });
points_list.Add(new List<Point> { new Point(256, 256) });
points_list.Add(new List<Point> { new Point(256, 128) });
i.FillPoly(points_list, new Scalar(255), 0); // <- tried a variety of line types
Summary of your issue
LineTypes.Filled not available
Environment
OpenCvSharp4 4.7.0.20230115
What did you do when you faced the problem?
I am trying to use the 'FillPoly' function within Mat and am having the issue that the points will not connect
Example code:
Output:
What did you intend to be?
I would like to see the corners all connected![Capture](https://user-images.githubusercontent.com/31781212/222012790-c73872dd-34cc-4e81-8fac-0d3d1fede7b0.JPG)