diff --git a/modules/imgproc/src/shapedescr.cpp b/modules/imgproc/src/shapedescr.cpp index 2b9614cef..87ced482a 100644 --- a/modules/imgproc/src/shapedescr.cpp +++ b/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; }