Skip to content
Snippets Groups Projects
Commit cd93f027 authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

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

parents 2f8f7d19 c2da624a
No related branches found
No related tags found
No related merge requests found
...@@ -108,7 +108,7 @@ int otbAmplitudeFunctorTest(int itkNotUsed(argc), char * itkNotUsed(argv) []) ...@@ -108,7 +108,7 @@ int otbAmplitudeFunctorTest(int itkNotUsed(argc), char * itkNotUsed(argv) [])
funct.SetChannelList(channels); funct.SetChannelList(channels);
output = funct.operator ()(rgbaPixel); output = funct.operator ()(rgbaPixel);
result = vcl_sqrt(rgbaPixel[i] * rgbaPixel[i] + rgbaPixel[j] * rgbaPixel[j]); 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 " std::cout << "vectorPixelType Test RGBAPixelType failed for channels " << i<< " and "
<< j << " !" << std::endl; << j << " !" << 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