Skip to content

Commit 389fe4f

Browse files
authored
Merge pull request #207 from manuelvolk/master
fix bug in convexHull if returnPoints is false
2 parents b4e516a + edcaa45 commit 389fe4f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cv/imgproc/init.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2068,9 +2068,7 @@ function cv.convexHull(t)
20682068
clockwise, returnPoints))
20692069
if not returnPoints then
20702070
-- correct the 0-based indexing
2071-
for i = 1,#retval do
2072-
retval[i] = retval[i] + 1
2073-
end
2071+
retval:add(1)
20742072
end
20752073
return retval
20762074
end

0 commit comments

Comments
 (0)