From 78f9362f89b020d85dbfed712ddfe4bcbd7ad3bf Mon Sep 17 00:00:00 2001 From: ser1zw Date: Sun, 16 Jan 2011 06:39:08 +0900 Subject: [PATCH] added a comment for CvMat#good_features_to_track --- ext/cvmat.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/ext/cvmat.cpp b/ext/cvmat.cpp index 2fab6bc..99f7f7f 100644 --- a/ext/cvmat.cpp +++ b/ext/cvmat.cpp @@ -3174,6 +3174,26 @@ rbi_find_corner_sub_pix(int argc, VALUE *argv, VALUE self) return Qnil; } +/* + * call-seq: + * good_features_to_track(quality_level, min_distance[, good_features_to_track_option]) + * -> array (include CvPoint2D32f) + * Determines strong corners on an image. + * + * quality_level – Multiplier for the max/min eigenvalue; specifies the minimal accepted quality of image corners + * min_distance – Limit, specifying the minimum possible distance between the returned corners; Euclidian distance is used + * good_features_to_track_option should be Hash include these keys. + * :mask + * Region of interest. The function selects points either in the specified region or in the whole image + * if the mask is nil. + * :block_size + * Size of the averaging block, passed to the underlying CornerMinEigenVal or CornerHarris used by the function. + * :use_harris + * If true, Harris operator ( CornerHarris ) is used instead of default CornerMinEigenVal + * :k + * Free parameter of Harris detector; used only if ( :use_harris => true ) + * note: good_features_to_track_option's default value is CvMat::GOOD_FEATURES_TO_TRACK_OPTION + */ VALUE rb_good_features_to_track(int argc, VALUE *argv, VALUE self) {