From 1923d87f61c7677aa2492f3cf0ae7fab729c8a46 Mon Sep 17 00:00:00 2001 From: abidrahmank Date: Thu, 11 Jul 2013 09:33:32 +0530 Subject: [PATCH] PyDocs for common interface of feature2d --- .../doc/common_interfaces_of_descriptor_extractors.rst | 4 ++++ .../features2d/doc/common_interfaces_of_feature_detectors.rst | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/modules/features2d/doc/common_interfaces_of_descriptor_extractors.rst b/modules/features2d/doc/common_interfaces_of_descriptor_extractors.rst index a1ac7b95e6e5..33f90a2fbe3d 100644 --- a/modules/features2d/doc/common_interfaces_of_descriptor_extractors.rst +++ b/modules/features2d/doc/common_interfaces_of_descriptor_extractors.rst @@ -57,6 +57,8 @@ Computes the descriptors for a set of keypoints detected in an image (first vari .. ocv:function:: void DescriptorExtractor::compute( const vector& images, vector >& keypoints, vector& descriptors ) const +.. ocv:pyfunction:: cv2.DescriptorExtractor_create.compute(image, keypoints[, descriptors]) -> keypoints, descriptors + :param image: Image. :param images: Image set. @@ -72,6 +74,8 @@ Creates a descriptor extractor by name. .. ocv:function:: Ptr DescriptorExtractor::create( const String& descriptorExtractorType ) +.. ocv:pyfunction:: cv2.DescriptorExtractor_create(descriptorExtractorType) -> retval + :param descriptorExtractorType: Descriptor extractor type. The current implementation supports the following types of a descriptor extractor: diff --git a/modules/features2d/doc/common_interfaces_of_feature_detectors.rst b/modules/features2d/doc/common_interfaces_of_feature_detectors.rst index 3bbaa8aca1f1..50b0883a03ec 100644 --- a/modules/features2d/doc/common_interfaces_of_feature_detectors.rst +++ b/modules/features2d/doc/common_interfaces_of_feature_detectors.rst @@ -44,6 +44,8 @@ Detects keypoints in an image (first variant) or image set (second variant). .. ocv:function:: void FeatureDetector::detect( const vector& images, vector >& keypoints, const vector& masks=vector() ) const +.. ocv:pyfunction:: cv2.FeatureDetector_create.detect(image[, mask]) -> keypoints + :param image: Image. :param images: Image set. @@ -60,6 +62,8 @@ Creates a feature detector by its name. .. ocv:function:: Ptr FeatureDetector::create( const String& detectorType ) +.. ocv:pyfunction:: cv2.FeatureDetector_create(detectorType) -> retval + :param detectorType: Feature detector type. The following detector types are supported: