Skip to content

Commit edcaa45

Browse files
authored
bug fix for convexHull
changes according to discussion
1 parent 3336d13 commit edcaa45

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cv/imgproc/init.lua

+1-3
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:size(1) 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)