1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 07:13:02 +04:00

fix isContourConvex

This commit is contained in:
S. Garrido
2015-05-27 20:51:53 +02:00
parent 565d3dde40
commit bd2c2f3bd1
+1 -1
View File
@@ -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;