Skip to content
Snippets Groups Projects
Commit afb1347c authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ENH : Unitary Test add for ThresholgImageToPointSetFilter.

parent 207792f4
No related branches found
No related tags found
No related merge requests found
......@@ -269,6 +269,11 @@ ADD_TEST(feTvHarrisPoupee ${FEATUREEXTRACTION_TESTS4}
ADD_TEST(feTvMultiplyByScalarImage ${FEATUREEXTRACTION_TESTS4}
otbMultiplyByScalarImageFilterTest)
ADD_TEST(feTuThresholdImageToPointSetFilterNew ${FEATUREEXTRACTION_TESTS4}
otbThresholdImageToPointSetFilterNew
)
ADD_TEST(feTuThresholdImageToPointSet1 ${FEATUREEXTRACTION_TESTS4}
--compare-ascii ${EPS} ${BASELINE_FILES}/feThresholdImageToPointSet_Threshold_0To255.txt
${TEMP}/feThresholdImageToPointSet_Threshold_0To255.txt
......@@ -813,6 +818,8 @@ ADD_TEST(feTvImageToSIFTKeyPointSetFilterQB_SuburbOutputAscii ${FEATUREEXTRACTIO
2 3 5.0 0.0
)
# A enrichir
SET(BasicFeatureExtraction_SRCS1
otbAlignImageToPath.cxx
......@@ -856,6 +863,7 @@ otbAssymmetricFusionOfLineDetectorNew.cxx
otbAssymmetricFusionOfLineDetector.cxx
otbHarrisImage.cxx
otbMultiplyByScalarImageTest.cxx
otbThresholdImageToPointSetFilterNew.cxx
otbThresholdImageToPointSetTest.cxx
)
SET(BasicFeatureExtraction_SRCS5
......
......@@ -33,5 +33,6 @@ REGISTER_TEST(otbAssymmetricFusionOfLineDetectorNew);
REGISTER_TEST(otbAssymmetricFusionOfLineDetector);
REGISTER_TEST(otbHarrisImage);
REGISTER_TEST(otbMultiplyByScalarImageFilterTest);
REGISTER_TEST(otbThresholdImageToPointSetFilterNew);
REGISTER_TEST(otbThresholdImageToPointSetTest);
}
/*=========================================================================
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 "otbThresholdImageToPointSetFilter.h"
#include "itkPointSet.h"
#include "otbImage.h"
#include <iostream>
int otbThresholdImageToPointSetFilterNew( int argc, char* argv[] )
{
const unsigned int Dimension = 2;
typedef unsigned char PixelType;
typedef otb::Image<PixelType, Dimension> ImageType;
typedef itk::PointSet<PixelType, Dimension> PointSetType;
typedef otb::ThresholdImageToPointSetFilter< ImageType, PointSetType > FilterThresholdType;
FilterThresholdType::Pointer filterThreshold = FilterThresholdType::New();
return EXIT_SUCCESS;
}
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