diff --git a/Examples/Patented/otbPatentedExamplesTests.cxx b/Examples/Patented/otbPatentedExamplesTests.cxx index 96504515b84e7dc8c666fe4e5d7987baf395fbd2..12964a79c7d520a7857b01d29e15d47aa33da294 100644 --- a/Examples/Patented/otbPatentedExamplesTests.cxx +++ b/Examples/Patented/otbPatentedExamplesTests.cxx @@ -26,8 +26,6 @@ void RegisterTests() { REGISTER_TEST(HybridSegmentationFuzzyVoronoiTest); REGISTER_TEST(EstimateAffineTransformationExampleTest); - REGISTER_TEST(SIFTDisparityMapEstimationTest); - REGISTER_TEST(SIFTFastExampleTest); REGISTER_TEST(ScaleInvariantFeatureImageFilterTest); } @@ -39,14 +37,6 @@ void RegisterTests() #define main EstimateAffineTransformationExampleTest #include "EstimateAffineTransformationExample.cxx" -#undef main -#define main SIFTDisparityMapEstimationTest -#include "SIFTDisparityMapEstimation.cxx" - #undef main #define main ScaleInvariantFeatureImageFilterTest #include "ScaleInvariantFeatureImageFilter.cxx" - -#undef main -#define main SIFTFastExampleTest -#include "SIFTFastExample.cxx" diff --git a/Examples/Patented/otbPatentedExamplesTests2.cxx b/Examples/Patented/otbPatentedExamplesTests2.cxx new file mode 100644 index 0000000000000000000000000000000000000000..8e98a513392ec78bf08ee225f5d67d90a9bd6b98 --- /dev/null +++ b/Examples/Patented/otbPatentedExamplesTests2.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. + +=========================================================================*/ + +// this file defines the otbMultiScaleTest for the test driver +// and all it expects is that you have a function called RegisterTests + +#include <iostream> +#include "otbTestMain.h" + +void RegisterTests() +{ + REGISTER_TEST(SIFTDisparityMapEstimationTest); + REGISTER_TEST(SIFTFastExampleTest); +} + + +#undef main +#define main SIFTDisparityMapEstimationTest +#include "SIFTDisparityMapEstimation.cxx" + + +#undef main +#define main SIFTFastExampleTest +#include "SIFTFastExample.cxx"