From fa4dc20918d688bb309419b43f502ca64529b69f Mon Sep 17 00:00:00 2001
From: Otmane Lahlou <otmane.lahlou@c-s.fr>
Date: Mon, 11 May 2009 15:16:25 +0200
Subject: [PATCH] ENH : right angle test add

---
 Examples/FeatureExtraction/CMakeLists.txt         | 15 +++++++++++++++
 .../otbFeatureExtractionExamplesTests2.cxx        |  6 +++++-
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/Examples/FeatureExtraction/CMakeLists.txt b/Examples/FeatureExtraction/CMakeLists.txt
index d501751e79..6306a0359d 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 dec218af75..72886db521 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"
-- 
GitLab