diff --git a/Testing/Code/SARPolarimetry/CMakeLists.txt b/Testing/Code/SARPolarimetry/CMakeLists.txt index f9b50ad4f6c6d9868e18b5839be9aa94ac8771ae..fb47e9aa546cd2d8722bddab7038cd581574d80e 100644 --- a/Testing/Code/SARPolarimetry/CMakeLists.txt +++ b/Testing/Code/SARPolarimetry/CMakeLists.txt @@ -275,6 +275,11 @@ ADD_TEST(saTvMuellerToPolarisationDegreeAndPowerImageFilter ${SARPOLARIMETRY_TES ${TEMP}/saTvMuellerToPolarisationDegreeAndPowerImageFilter.tif ) +# Mueller To MLC Image Filter +ADD_TEST(saTuMuellerToMLCImageFilterNew ${SARPOLARIMETRY_TESTS1} + otbMuellerToMLCImageFilterNew +) + # A enrichir SET(SARPOLARIMETRY_SRCS1 otbSARPolarimetryTests1.cxx @@ -302,6 +307,7 @@ otbMuellerToCircularPolarisationImageFilterNew.cxx otbMuellerToCircularPolarisationImageFilter.cxx otbMuellerToPolarisationDegreeAndPowerImageFilterNew.cxx otbMuellerToPolarisationDegreeAndPowerImageFilter.cxx +otbMuellerToMLCImageFilterNew.cxx ) OTB_ADD_EXECUTABLE(otbSARPolarimetryTests1 "${SARPOLARIMETRY_SRCS1}" "OTBSARPolarimetry;OTBIO;OTBTesting") diff --git a/Testing/Code/SARPolarimetry/otbMuellerToMLCImageFilterNew.cxx b/Testing/Code/SARPolarimetry/otbMuellerToMLCImageFilterNew.cxx new file mode 100644 index 0000000000000000000000000000000000000000..9985752a26d22fc10d8451f9fe06815ddec22c1c --- /dev/null +++ b/Testing/Code/SARPolarimetry/otbMuellerToMLCImageFilterNew.cxx @@ -0,0 +1,42 @@ +/*========================================================================= + + Program: ORFEO Toolbox + Language: C++ + Date: $Date$ + Version: $Revision$ + + + Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. + See OTBCopyright.txt for details. + + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ +#if defined(_MSC_VER) +#pragma warning ( disable : 4786 ) +#endif + +#include "itkExceptionObject.h" +#include <iostream> + +#include "otbVectorImage.h" +#include "otbMuellerToMLCImageFilter.h" + +int otbMuellerToMLCImageFilterNew(int argc, char * argv[]) +{ + const unsigned int Dimension = 2; + + typedef double PixelType; + typedef otb::VectorImage<PixelType, Dimension> ImageType; + + typedef otb::MuellerToMLCImageFilter<ImageType, ImageType> FilterType; + + FilterType::Pointer filter = FilterType::New(); + + std::cout << filter << std::endl; + + return EXIT_SUCCESS; +} diff --git a/Testing/Code/SARPolarimetry/otbSARPolarimetryTests1.cxx b/Testing/Code/SARPolarimetry/otbSARPolarimetryTests1.cxx index 6640d55f973b496219cb63aec73647cfbf9fb529..abf06255a96aa5727e47effb9f17ae140c1787de 100644 --- a/Testing/Code/SARPolarimetry/otbSARPolarimetryTests1.cxx +++ b/Testing/Code/SARPolarimetry/otbSARPolarimetryTests1.cxx @@ -50,4 +50,5 @@ void RegisterTests() REGISTER_TEST(otbMuellerToCircularPolarisationImageFilter); REGISTER_TEST(otbMuellerToPolarisationDegreeAndPowerImageFilterNew); REGISTER_TEST(otbMuellerToPolarisationDegreeAndPowerImageFilter); + REGISTER_TEST(otbMuellerToMLCImageFilterNew); }