Fixed FAST algorithm initializer
authorAndrey Kamaev <andrey.kamaev@itseez.com>
Mon, 20 Aug 2012 21:03:52 +0000 (01:03 +0400)
committerAndrey Kamaev <andrey.kamaev@itseez.com>
Mon, 20 Aug 2012 21:03:52 +0000 (01:03 +0400)
modules/features2d/src/features2d_init.cpp

index 6ecffeb..e21b8d8 100644 (file)
@@ -59,7 +59,7 @@ CV_INIT_ALGORITHM(BriefDescriptorExtractor, "Feature2D.BRIEF",
 CV_INIT_ALGORITHM(FastFeatureDetector, "Feature2D.FAST",
                   obj.info()->addParam(obj, "threshold", obj.threshold);
                   obj.info()->addParam(obj, "nonmaxSuppression", obj.nonmaxSuppression);
-                  obj.info()->addParam(obj, "type", obj.type, FastFeatureDetector::TYPE_9_16));
+                  obj.info()->addParam(obj, "type", obj.type, static_cast<int>(FastFeatureDetector::TYPE_9_16)));
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////////////