From 0087e5ece329b6f41fec728f85a32605681a001f Mon Sep 17 00:00:00 2001 From: Julien Michel <julien.michel@orfeo-toolbox.org> Date: Thu, 1 Sep 2011 17:41:15 +0200 Subject: [PATCH] TEST: Adding v and auto-correlation output in test logs --- .../otbMaximumAutocorrelationFactorImageFilter.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Testing/Code/BasicFilters/otbMaximumAutocorrelationFactorImageFilter.cxx b/Testing/Code/BasicFilters/otbMaximumAutocorrelationFactorImageFilter.cxx index b2ddcd7af8..12ef1f4c1c 100644 --- a/Testing/Code/BasicFilters/otbMaximumAutocorrelationFactorImageFilter.cxx +++ b/Testing/Code/BasicFilters/otbMaximumAutocorrelationFactorImageFilter.cxx @@ -20,8 +20,8 @@ #include "otbStreamingImageFileWriter.h" #include "otbMaximumAutocorrelationFactorImageFilter.h" -typedef otb::VectorImage<float,2> ImageType; -typedef otb::VectorImage<float,2> OutputImageType; +typedef otb::VectorImage<short,2> ImageType; +typedef otb::VectorImage<double,2> OutputImageType; typedef otb::ImageFileReader<ImageType> ReaderType; typedef otb::StreamingImageFileWriter<OutputImageType> WriterType; typedef otb::MaximumAutocorrelationFactorImageFilter<ImageType,OutputImageType> MADFilterType; @@ -50,5 +50,11 @@ int otbMaximumAutocorrelationFactorImageFilter(int argc, char* argv[]) writer->SetFileName(outfname); writer->Update(); + std::cout<<"V: "<<std::endl; + std::cout<<madFilter->GetV()<<std::endl; + + std::cout<<"Auto-correlation: "<<std::endl; + std::cout<<madFilter->GetAutoCorrelation()<<std::endl; + return EXIT_SUCCESS; } -- GitLab