From bd2c2f3bd15bc9458519f8fd52b98e30067e8a6f Mon Sep 17 00:00:00 2001 From: "S. Garrido" Date: Wed, 27 May 2015 20:51:53 +0200 Subject: [PATCH] fix isContourConvex --- modules/imgproc/src/convhull.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgproc/src/convhull.cpp b/modules/imgproc/src/convhull.cpp index 35526a90b..df50dde4e 100644 --- a/modules/imgproc/src/convhull.cpp +++ b/modules/imgproc/src/convhull.cpp @@ -347,7 +347,7 @@ static bool isContourConvex_( const Point_<_Tp>* p, int n ) _Tp dy0 = cur_pt.y - prev_pt.y; int orientation = 0; - for( int i = 0; i < n-1; i++ ) + for( int i = 0; i < n; i++ ) { _Tp dxdy0, dydx0; _Tp dx, dy;