mirror of
https://github.com/zebrajr/opencv.git
synced 2026-01-15 12:15:17 +00:00
Merge pull request #12206 from jsxyhelu/3.4
find innercircle of contour by using pointPolygonTest: (#12206)
This commit is contained in:
committed by
Alexander Alekhin
parent
492ef14550
commit
7828854c9d
@@ -72,10 +72,11 @@ class PointPolygonTest {
|
||||
}
|
||||
}
|
||||
drawing.put(0, 0, drawingData);
|
||||
Imgproc.circle(drawing, res.maxLoc, (int)res.maxVal, new Scalar(255, 255, 255), 2, 8, 0);
|
||||
|
||||
/// Show your results
|
||||
HighGui.imshow("Source", src);
|
||||
HighGui.imshow("Distance", drawing);
|
||||
HighGui.imshow("Distance and inscribed circle", drawing);
|
||||
|
||||
HighGui.waitKey();
|
||||
System.exit(0);
|
||||
|
||||
Reference in New Issue
Block a user