Fix for ratio in decimal number

This commit is contained in:
Omer
2019-09-24 02:44:02 +03:00
parent 1def77f36d
commit e644eec49d
3 changed files with 20 additions and 10 deletions

View File

@@ -53,7 +53,7 @@ public class CVProcess {
return FoundContours;
}
List<MatOfPoint> FilterContours(List<MatOfPoint> InputContours, List<Double> area, List<Double> ratio, List<Double> extent) {
List<MatOfPoint> FilterContours(List<MatOfPoint> InputContours, List<Integer> area, List<Double> ratio, List<Integer> extent) {
for (MatOfPoint Contour : InputContours) {
try {
double contourArea = Imgproc.contourArea(Contour); //TODO change scaling