From 7be3d3ab2cfcc52b49eb772123234460e658da31 Mon Sep 17 00:00:00 2001 From: Bovaz Date: Wed, 14 Oct 2015 18:57:33 -0700 Subject: [PATCH] sqrtf to std::sqrt --- modules/imgproc/src/shapedescr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgproc/src/shapedescr.cpp b/modules/imgproc/src/shapedescr.cpp index 2b9614cef6..87ced482ac 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; }