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

ADD: HAlphaImageFilter test: New()

parent 224aecfe
Branches
Tags
No related merge requests found
...@@ -211,6 +211,11 @@ ADD_TEST(sarTvMLCToCircularCoherencyDegreeImageFilter ${SARPOLARIMETRY_TESTS1} ...@@ -211,6 +211,11 @@ ADD_TEST(sarTvMLCToCircularCoherencyDegreeImageFilter ${SARPOLARIMETRY_TESTS1}
${TEMP}/sarTvMLCToCircularCoherencyDegreeImageFilter.tif ${TEMP}/sarTvMLCToCircularCoherencyDegreeImageFilter.tif
) )
# H Alpha Image Filter
ADD_TEST(sarTuHAlphaImageFilterNew ${SARPOLARIMETRY_TESTS1}
otbHAlphaImageFilterNew
)
# A enrichir # A enrichir
SET(SARPOLARIMETRY_SRCS1 SET(SARPOLARIMETRY_SRCS1
...@@ -231,6 +236,7 @@ otbMLCToCoherencyDegreeImageFilterNew.cxx ...@@ -231,6 +236,7 @@ otbMLCToCoherencyDegreeImageFilterNew.cxx
otbMLCToCoherencyDegreeImageFilter.cxx otbMLCToCoherencyDegreeImageFilter.cxx
otbMLCToCircularCoherencyDegreeImageFilterNew.cxx otbMLCToCircularCoherencyDegreeImageFilterNew.cxx
otbMLCToCircularCoherencyDegreeImageFilter.cxx otbMLCToCircularCoherencyDegreeImageFilter.cxx
otbHAlphaImageFilterNew.cxx
) )
OTB_ADD_EXECUTABLE(otbSARPolarimetryTests1 "${SARPOLARIMETRY_SRCS1}" "OTBSARPolarimetry;OTBIO;OTBTesting") 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 "otbImage.h"
#include "otbVectorImage.h"
#include "otbHAlphaImageFilter.h"
int otbHAlphaImageFilterNew(int argc, char * argv[])
{
typedef double PixelType;
const unsigned int Dimension = 2;
typedef otb::HAlphaImageFilter<PixelType> FilterType;
FilterType::Pointer filter = FilterType::New();
std::cout << filter << std::endl;
return EXIT_SUCCESS;
}
...@@ -42,4 +42,5 @@ void RegisterTests() ...@@ -42,4 +42,5 @@ void RegisterTests()
REGISTER_TEST(otbMLCToCoherencyDegreeImageFilter); REGISTER_TEST(otbMLCToCoherencyDegreeImageFilter);
REGISTER_TEST(otbMLCToCircularCoherencyDegreeImageFilterNew); REGISTER_TEST(otbMLCToCircularCoherencyDegreeImageFilterNew);
REGISTER_TEST(otbMLCToCircularCoherencyDegreeImageFilter); REGISTER_TEST(otbMLCToCircularCoherencyDegreeImageFilter);
REGISTER_TEST(otbHAlphaImageFilterNew);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment