From e633c991b0ab03a5fbbcb6ab58089fd34be17fbc Mon Sep 17 00:00:00 2001 From: Seon-Wook Park Date: Fri, 19 Jun 2015 04:57:01 +0200 Subject: [PATCH] spatialGradient: Doc, fix dangling newline error --- modules/imgproc/include/opencv2/imgproc.hpp | 17 ++++++++++++++--- modules/imgproc/perf/perf_spatialgradient.cpp | 1 - 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/modules/imgproc/include/opencv2/imgproc.hpp b/modules/imgproc/include/opencv2/imgproc.hpp index c93975e..947dfc3 100644 --- a/modules/imgproc/include/opencv2/imgproc.hpp +++ b/modules/imgproc/include/opencv2/imgproc.hpp @@ -1369,14 +1369,25 @@ CV_EXPORTS_W void Sobel( InputArray src, OutputArray dst, int ddepth, double scale = 1, double delta = 0, int borderType = BORDER_DEFAULT ); -/** @brief TODO +/** @brief Calculates the first order image derivative in both x and y using a Sobel operator -TODO +Equivalent to calling: +@code +Sobel( src, dx, CV_16SC1, 1, 0, 3 ); +Sobel( src, dy, CV_16SC1, 0, 1, 3 ); +@endcode + +@param src input image. +@param dx output image with first-order derivative in x. +@param dy output image with first-order derivative in y. +@param ksize size of Sobel kernel. It must be 3. + +@sa Sobel */ CV_EXPORTS_W void spatialGradient( InputArray src, OutputArray dx, - OutputArray dy, int ksize ); + OutputArray dy, int ksize = 3 ); /** @brief Calculates the first x- or y- image derivative using Scharr operator. diff --git a/modules/imgproc/perf/perf_spatialgradient.cpp b/modules/imgproc/perf/perf_spatialgradient.cpp index 31219a3..8745614 100644 --- a/modules/imgproc/perf/perf_spatialgradient.cpp +++ b/modules/imgproc/perf/perf_spatialgradient.cpp @@ -31,4 +31,3 @@ PERF_TEST_P( Size_Ksize, spatialGradient, SANITY_CHECK(dx); SANITY_CHECK(dy); } - -- 2.7.4