From 7c3a6a4f9116c3b1ef8cb2d9a6a3b95e402cab2e Mon Sep 17 00:00:00 2001 From: gdd Date: Wed, 12 Oct 2011 09:36:08 +0000 Subject: [PATCH] rnc: Modified the contour detection in order to build a spline instead of a polyline as an output of the operation --- src/OCCViewer/OCCViewer_FeatureDetector.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OCCViewer/OCCViewer_FeatureDetector.cxx b/src/OCCViewer/OCCViewer_FeatureDetector.cxx index 5e907b8f7..b3ae5a321 100644 --- a/src/OCCViewer/OCCViewer_FeatureDetector.cxx +++ b/src/OCCViewer/OCCViewer_FeatureDetector.cxx @@ -156,7 +156,7 @@ void OCCViewer_FeatureDetector::_detectAndRetrieveContours( Mat src ) src = src > 1; int method ;//= CV_CHAIN_APPROX_SIMPLE; // if ( rect.width > 1 ) - method = CV_CHAIN_APPROX_TC89_KCOS;//CV_CHAIN_APPROX_TC89_L1; + method = CV_CHAIN_APPROX_NONE;//CV_CHAIN_APPROX_TC89_KCOS;//CV_CHAIN_APPROX_TC89_L1; findContours( src, contours, hierarchy,CV_RETR_CCOMP, method); // Other possible approximations CV_CHAIN_APPROX_TC89_L1, CV_CHAIN_APPROX_SIMPLE cf. OpenCV documentation // for precise information -- 2.39.2