Commit aeb260a3 authored by Bovaz's avatar Bovaz

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

sqrtf to std::sqrt
parents 216baf5b 7be3d3ab
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment