From bf65294bad357f311e0115b8869920536873f682 Mon Sep 17 00:00:00 2001 From: Christophe Palmann <christophe.palmann@c-s.fr> Date: Wed, 9 Sep 2015 08:55:35 +0200 Subject: [PATCH] TEST: baseline for MuellerToReciprocalCovariance functor updated --- .../otbMuellerToReciprocalCovarianceFunctor.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Modules/Filtering/Polarimetry/test/otbMuellerToReciprocalCovarianceFunctor.cxx b/Modules/Filtering/Polarimetry/test/otbMuellerToReciprocalCovarianceFunctor.cxx index e52054bd84..925cfdb9df 100644 --- a/Modules/Filtering/Polarimetry/test/otbMuellerToReciprocalCovarianceFunctor.cxx +++ b/Modules/Filtering/Polarimetry/test/otbMuellerToReciprocalCovarianceFunctor.cxx @@ -43,12 +43,12 @@ int otbMuellerToReciprocalCovarianceFunctor(int itkNotUsed(argc), char * itkNotU val += 0.5; } - result[0] = ComplexType(2.5, 0.); - result[1] = ComplexType(4., 5.); - result[2] = ComplexType(-6.25, 0.75); - result[3] = ComplexType(-8, 0.); - result[4] = ComplexType(0.5, -0.5); - result[5] = ComplexType(0., 0.); + result[0] = ComplexType(1.75,0); + result[1] = ComplexType(2.82842712474619,3.53553390593274); + result[2] = ComplexType(-6.25,-5.5); + result[3] = ComplexType(-2.5,0); + result[4] = ComplexType(-1.4142135623731,-1.4142135623731); + result[5] = ComplexType(0.75,0); FunctorType funct; outputFunct = funct.operator ()( input ); @@ -68,6 +68,7 @@ int otbMuellerToReciprocalCovarianceFunctor(int itkNotUsed(argc), char * itkNotU vcl_abs(result[5].imag()-outputFunct[5].imag()) > 1e-10 ) { + std::cout.precision(15); std::cout<<"Test gives :"<<std::endl; std::cout<<outputFunct<<std::endl; std::cout<<"Wanted results are :"<<std::endl; -- GitLab