diff --git a/Examples/FeatureExtraction/CMakeLists.txt b/Examples/FeatureExtraction/CMakeLists.txt index d501751e79fd7ea9d50072a4f20ca9575f3ac8b6..6306a0359dd5d64d6ad1c21acca9ae4c69b99d35 100644 --- a/Examples/FeatureExtraction/CMakeLists.txt +++ b/Examples/FeatureExtraction/CMakeLists.txt @@ -337,6 +337,21 @@ ADD_TEST(CloudDetectionExampleTest ${EXE_TESTS2} 553 467 734 581 0.4 0.6 1.0 ) +# ------- Right Angle Detection test---------- + +ADD_TEST(RightAngleDetectionExample ${EXE_TESTS2} + --compare-image ${TOL} + ${BASELINE}/RightAngleOutput.png + ${TEMP}/PrettyRightAngleOutput.png + RightAngleDetectionExample + ${INPUTDATA}/qb_RoadExtract2.tif + ${TEMP}/RighAngleOutput.tif + ${TEMP}/PrettyRightAngleInput.png + ${TEMP}/PrettyRightAngleOutput.png + 0.09 + 20. +) + ADD_EXECUTABLE(otbFeatureExtractionExamplesTests1 otbFeatureExtractionExamplesTests1.cxx) TARGET_LINK_LIBRARIES(otbFeatureExtractionExamplesTests1 ITKAlgorithms ITKStatistics OTBBasicFilters OTBCommon OTBDisparityMap OTBIO OTBSpatialReasoning OTBChangeDetection OTBFeatureExtraction OTBLearning OTBMultiScale) diff --git a/Examples/FeatureExtraction/otbFeatureExtractionExamplesTests2.cxx b/Examples/FeatureExtraction/otbFeatureExtractionExamplesTests2.cxx index dec218af753b8e7f491d495ead88ab46a4899ce7..72886db52192536659b8afc66da869fea72cd776 100644 --- a/Examples/FeatureExtraction/otbFeatureExtractionExamplesTests2.cxx +++ b/Examples/FeatureExtraction/otbFeatureExtractionExamplesTests2.cxx @@ -29,9 +29,10 @@ void RegisterTests() REGISTER_TEST(ExtractRoadExampleTest); REGISTER_TEST(SeamCarvingExampleTest); REGISTER_TEST(SeamCarvingOtherExampleTest); -//REGISTER_TEST(ImageToSIFTKeyPointSetFilterTest); + //REGISTER_TEST(ImageToSIFTKeyPointSetFilterTest); REGISTER_TEST(ScaleInvariantFeatureImageFilterTest); REGISTER_TEST(CloudDetectionExampleTest); + REGISTER_TEST( RightAngleDetectionExample); } #undef main @@ -62,3 +63,6 @@ void RegisterTests() #define main CloudDetectionExampleTest #include "CloudDetectionExample.cxx" +#undef main +#define main RightAngleDetectionExample +#include "RightAngleDetectionExample.cxx"