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

TEST: Adding v and auto-correlation output in test logs

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