Skip to content
Snippets Groups Projects
Commit 848d0d4a authored by Julien Michel's avatar Julien Michel
Browse files

Correction test d'erreur sur des valeurs réelles.

parent 2fa3d673
Branches
Tags
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment