Skip to content
Snippets Groups Projects
Commit 2fe6cd02 authored by Patrick Imbo's avatar Patrick Imbo
Browse files

TEST: add MuellerToMLCImageFilter::New()

parent a86aae20
No related branches found
No related tags found
No related merge requests found
......@@ -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")
......
/*=========================================================================
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;
}
......@@ -50,4 +50,5 @@ void RegisterTests()
REGISTER_TEST(otbMuellerToCircularPolarisationImageFilter);
REGISTER_TEST(otbMuellerToPolarisationDegreeAndPowerImageFilterNew);
REGISTER_TEST(otbMuellerToPolarisationDegreeAndPowerImageFilter);
REGISTER_TEST(otbMuellerToMLCImageFilterNew);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment