From b02d1ba8aad12e81f1aed367514e72f5b17178ce Mon Sep 17 00:00:00 2001 From: Lilibeth De La Cruz Date: Fri, 27 Jun 2014 00:19:01 -0400 Subject: [PATCH 1/2] Fix typo in morphology method documentation --- ext/opencv/cvmat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opencv/cvmat.cpp b/ext/opencv/cvmat.cpp index cbd311d..1686d2f 100644 --- a/ext/opencv/cvmat.cpp +++ b/ext/opencv/cvmat.cpp @@ -4056,7 +4056,7 @@ rb_dilate_bang(int argc, VALUE *argv, VALUE self) /* * call-seq: - * morpholohy(operation[,element = nil][,iteration = 1]) -> cvmat + * morphology(operation[,element = nil][,iteration = 1]) -> cvmat * * Performs advanced morphological transformations. * operation From 00f0c31b0526f1285aa90f4ee7987e078ce61bdd Mon Sep 17 00:00:00 2001 From: Lilibeth De La Cruz Date: Fri, 27 Jun 2014 00:19:15 -0400 Subject: [PATCH 2/2] Add details to morphology method documentation --- ext/opencv/cvmat.cpp | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/ext/opencv/cvmat.cpp b/ext/opencv/cvmat.cpp index 1686d2f..e1cbfdf 100644 --- a/ext/opencv/cvmat.cpp +++ b/ext/opencv/cvmat.cpp @@ -4055,17 +4055,19 @@ rb_dilate_bang(int argc, VALUE *argv, VALUE self) } /* - * call-seq: - * morphology(operation[,element = nil][,iteration = 1]) -> cvmat + * Performs advanced morphological transformations using erosion and dilation as basic operations. * - * Performs advanced morphological transformations. - * operation - * Type of morphological operation, one of: - * CV_MOP_OPEN - opening - * CV_MOP_CLOSE - closing - * CV_MOP_GRADIENT - morphological gradient - * CV_MOP_TOPHAT - top hat - * CV_MOP_BLACKHAT - black hat + * @overload morphology(operation, element = nil, iteration = 1) + * @param operation [Integer] Type of morphological operation. + * * CV_MOP_OPEN - Opening + * * CV_MOP_CLOSE - Closing + * * CV_MOP_GRADIENT - Morphological gradient + * * CV_MOP_TOPHAT - Top hat + * * CV_MOP_BLACKHAT - Black hat + * @param element [IplConvKernel] Structuring element. + * @param iteration [Integer] Number of times erosion and dilation are applied. + * @return [CvMat] Result array + * @opencv_func cvMorphologyEx */ VALUE rb_morphology(int argc, VALUE *argv, VALUE self)