diff --git a/Testing/Code/BasicFilters/otbMaximumAutocorrelationFactorImageFilter.cxx b/Testing/Code/BasicFilters/otbMaximumAutocorrelationFactorImageFilter.cxx index b2ddcd7af8cb1057c8b091e77befe15bfe7a5689..12ef1f4c1c4ac7d155d54f9c45560dc933a35c79 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; }