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

TEST: add test MuellerToPolarisationDegreeAndPowerImageFilter::New()

parent 8391904e
No related branches found
No related tags found
No related merge requests found
......@@ -259,6 +259,11 @@ ADD_TEST(sarTvMuellerToCircularPolarisationImageFilter ${SARPOLARIMETRY_TESTS1}
${TEMP}/sarTvMuellerToCircularPolarisationImageFilter.tif
)
# Mueller To polarisation degree and power Image Filter
ADD_TEST(sarTuMuellerToPolarisationDegreeAndPowerImageFilterNew ${SARPOLARIMETRY_TESTS1}
otbMuellerToPolarisationDegreeAndPowerImageFilterNew
)
# A enrichir
SET(SARPOLARIMETRY_SRCS1
otbSARPolarimetryTests1.cxx
......@@ -284,6 +289,7 @@ otbCoherencyToMuellerImageFilterNew.cxx
otbCoherencyToMuellerImageFilter.cxx
otbMuellerToCircularPolarisationImageFilterNew.cxx
otbMuellerToCircularPolarisationImageFilter.cxx
otbMuellerToPolarisationDegreeAndPowerImageFilterNew.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 "otbMuellerToPolarisationDegreeAndPowerImageFilter.h"
int otbMuellerToPolarisationDegreeAndPowerImageFilterNew(int argc, char * argv[])
{
const unsigned int Dimension = 2;
typedef double PixelType;
typedef otb::VectorImage<PixelType, Dimension> ImageType;
typedef otb::MuellerToPolarisationDegreeAndPowerImageFilter<ImageType, ImageType> FilterType;
FilterType::Pointer filter = FilterType::New();
std::cout << filter << std::endl;
return EXIT_SUCCESS;
}
......@@ -48,4 +48,5 @@ void RegisterTests()
REGISTER_TEST(otbCoherencyToMuellerImageFilter);
REGISTER_TEST(otbMuellerToCircularPolarisationImageFilterNew);
REGISTER_TEST(otbMuellerToCircularPolarisationImageFilter);
REGISTER_TEST(otbMuellerToPolarisationDegreeAndPowerImageFilterNew);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment