Merge pull request #12206 from jsxyhelu/3.4

find innercircle of contour by using pointPolygonTest: (#12206)
This commit is contained in:
jsxyhelu
2018-09-12 04:58:01 +08:00
committed by Alexander Alekhin
parent 492ef14550
commit 7828854c9d
4 changed files with 9 additions and 5 deletions

View File

@@ -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);