May be it can solve issue 5908
authorLaurentBerger <laurent.berger@univ-lemans.fr>
Sat, 2 Jan 2016 20:06:51 +0000 (21:06 +0100)
committerLaurentBerger <laurent.berger@univ-lemans.fr>
Sat, 2 Jan 2016 20:06:51 +0000 (21:06 +0100)
modules/imgproc/src/convhull.cpp

index df50dde..b870ee4 100644 (file)
@@ -302,7 +302,7 @@ void convexityDefects( InputArray _points, InputArray _hull, OutputArray _defect
         int defect_deepest_point = -1;
         double defect_depth = 0;
         bool is_defect = false;
-
+        j=hcurr;
         for(;;)
         {
             // go through points to achieve next hull point