Commit cd93f027 authored by Rashad Kanavath's avatar Rashad Kanavath

Merge branch 'develop' of https://git.orfeo-toolbox.org/git/otb into develop

parents 2f8f7d19 c2da624a
......@@ -108,7 +108,7 @@ int otbAmplitudeFunctorTest(int itkNotUsed(argc), char * itkNotUsed(argv) [])
funct.SetChannelList(channels);
output = funct.operator ()(rgbaPixel);
result = vcl_sqrt(rgbaPixel[i] * rgbaPixel[i] + rgbaPixel[j] * rgbaPixel[j]);
if( abs(static_cast<double>(result)-static_cast<double>(output[0])) > 0.0000001)
if( std::abs(static_cast<double>(result)-static_cast<double>(output[0])) > 0.0000001)
{
std::cout << "vectorPixelType Test RGBAPixelType failed for channels " << i<< " and "
<< j << " !" << std::endl;
......
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