diff --git a/ext/opencv/cvmat.cpp b/ext/opencv/cvmat.cpp index cbd311d..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: - * morpholohy(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)