diff --git a/vcg/math/camera.h b/vcg/math/camera.h index 1a003e80..3d5e365d 100644 --- a/vcg/math/camera.h +++ b/vcg/math/camera.h @@ -379,7 +379,7 @@ vcg::Point2 Camera::UndistortedToDistorted(vcg::Point2 else /* three real roots */ { D = sqrt(-D); - S = pow((hypot (R, D)),CBRT); + S = pow((Scalar)(hypot (R, D)),(Scalar)CBRT); T = atan2 (D, R) / 3; //SinCos(T, sinT, cosT); sinT=sin(T);