Merge pull request #1 from Bovaz/Bovaz-patch-1

sqrtf to std::sqrt
pull/5518/head
Bovaz 9 years ago
commit aeb260a3f9
  1. 2
      modules/imgproc/src/shapedescr.cpp

@ -317,7 +317,7 @@ double cv::arcLength( InputArray _curve, bool is_closed )
{
Point2f p = is_float ? ptf[i] : Point2f((float)pti[i].x,(float)pti[i].y);
float dx = p.x - prev.x, dy = p.y - prev.y;
perimeter += sqrtf(dx*dx + dy*dy);
perimeter += std::sqrt(dx*dx + dy*dy);
prev = p;
}

Loading…
Cancel
Save