diff --git a/Testing/Code/Fuzzy/CMakeLists.txt b/Testing/Code/Fuzzy/CMakeLists.txt index 8d438a90d9479b1317634fd50a64da27910a33cf..e9ee389fc03fd370ebcf05a0c0f76776fecc7c16 100644 --- a/Testing/Code/Fuzzy/CMakeLists.txt +++ b/Testing/Code/Fuzzy/CMakeLists.txt @@ -124,6 +124,8 @@ ADD_TEST(fzTvFuzzyDescriptorsModelManagerTest ${Fuzzy_TESTS2} ${TEMP}/fzTvFuzzyDescriptorsModelManager.xml ) +ADD_TEST(fzTuStandardDSCostFunctionNew ${Fuzzy_TESTS2} + otbStandardDSCostFunctionNew) SET(BasicFuzzy_SRCS1 @@ -144,6 +146,7 @@ otbVectorDataToDSValidatedVectorDataFilter.cxx otbVectorDataToSpecificDescriptionFilterBase.cxx otbVectorDataToRoadDescriptionFilter.cxx otbFuzzyDescriptorsModelManager.cxx +otbStandardDSCostFunction.cxx ) ADD_EXECUTABLE(otbFuzzyTests1 otbFuzzyTests1.cxx ${BasicFuzzy_SRCS1}) diff --git a/Testing/Code/Fuzzy/otbFuzzyTests2.cxx b/Testing/Code/Fuzzy/otbFuzzyTests2.cxx index 6f257b81a6b61f0d2cd74336d9ac85e7387d69aa..e6054e28d261c0c26a1bef7275e6d023e33e5e39 100644 --- a/Testing/Code/Fuzzy/otbFuzzyTests2.cxx +++ b/Testing/Code/Fuzzy/otbFuzzyTests2.cxx @@ -34,4 +34,5 @@ void RegisterTests() REGISTER_TEST(otbVectorDataToRoadDescriptionFilter); REGISTER_TEST(otbFuzzyDescriptorsModelManagerNew); REGISTER_TEST(otbFuzzyDescriptorsModelManagerTest); + REGISTER_TEST(otbStandardDSCostFunctionNew); } diff --git a/Testing/Code/Fuzzy/otbStandardDSCostFunction.cxx b/Testing/Code/Fuzzy/otbStandardDSCostFunction.cxx new file mode 100644 index 0000000000000000000000000000000000000000..b86046b680a889a5667d9220eff769781e49718f --- /dev/null +++ b/Testing/Code/Fuzzy/otbStandardDSCostFunction.cxx @@ -0,0 +1,39 @@ +/*========================================================================= + + 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. + +=========================================================================*/ + + +#include "otbStandardDSCostFunction.h" + +#include "otbVectorData.h" +#include "otbVectorDataToDSValidatedVectorDataFilter.h" + +int otbStandardDSCostFunctionNew(int argc, char* argv[]) +{ + typedef double PrecisionType; + typedef otb::VectorData<PrecisionType> VectorDataType; + typedef otb::VectorDataToDSValidatedVectorDataFilter<VectorDataType, PrecisionType> + VectorDataValidationFilterType; + typedef otb::StandardDSCostFunction<VectorDataValidationFilterType> + CostFunctionType; + + CostFunctionType::Pointer costFunction = CostFunctionType::New(); + + std::cout<<costFunction<<std::endl; + + return EXIT_SUCCESS; +}