diff --git a/Testing/Code/FeatureExtraction/otbOrientationPath.cxx b/Testing/Code/FeatureExtraction/otbOrientationPath.cxx index 2295dfdc9710f0a0e933c5ae7756a843f69604b9..8882ec211b6150455333ae1cde44ce9e9034b350 100644 --- a/Testing/Code/FeatureExtraction/otbOrientationPath.cxx +++ b/Testing/Code/FeatureExtraction/otbOrientationPath.cxx @@ -53,10 +53,11 @@ int otbOrientationPath( int argc, char * argv[] ) function->SetInputPath( pathElt ); RealType ResultTheta = function->Evaluate(); + std::cout.precision(10); std::cout << "Orientation found : " << ResultTheta <<std::endl; - if( ResultTheta != Theta ) + if( abs(ResultTheta-Theta)>=10e-15) { - std::cout << "Error in Theta estimation :" << std::endl; + std::cout << "Error in Theta estimation:" <<(ResultTheta-Theta)<<std::endl; return EXIT_FAILURE; }