Skip to content
Snippets Groups Projects
Commit 7e15814c authored by Julien Malik's avatar Julien Malik
Browse files

COMP: fix ambiguous call to vcl_pow

parent 92eee5c5
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,7 @@ SarParametricMapFunction<TInputImage, TCoordRep>
//std::cout << "m_Coeff(" << ycoeff-1 << "," << xcoeff-1 << ") = " << m_Coeff(ycoeff-1, xcoeff-1) << std::endl;
intermediate = intermediate * point[0] + m_Coeff(ycoeff-1, xcoeff-1);
}
result += vcl_pow( point[1], ycoeff-1 ) * intermediate;
result += vcl_pow( static_cast<double>(point[1]), static_cast<double>(ycoeff-1) ) * intermediate;
}
return result;
......@@ -157,10 +157,10 @@ SarParametricMapFunction<TInputImage, TCoordRep>
for (unsigned int xcoeff = 0; xcoeff < m_Coeff.Cols(); ++xcoeff)
{
double xpart = vcl_pow( (point[0] - origin[0]) / size[0], xcoeff);
double xpart = vcl_pow( static_cast<double>(point[0] - origin[0]) / size[0], static_cast<double>(xcoeff));
for (unsigned int ycoeff = 0; ycoeff < m_Coeff.Rows(); ++ycoeff)
{
double ypart = vcl_pow( (point[1] - origin[1]) / size[1], ycoeff);
double ypart = vcl_pow( static_cast<double>(point[1] - origin[1]) / size[1], static_cast<double>(ycoeff));
a(i, xcoeff * m_Coeff.Rows() + ycoeff) = xpart * ypart;
//std::cout << "a(" << i << "," << xcoeff * m_Coeff.Rows() + ycoeff << ") = " << xpart * ypart << std::endl;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment