|
|
@ -240,8 +240,9 @@ CV_EXPORTS Ptr<cuda::CLAHE> createCLAHE(double clipLimit = 40.0, Size tileGridSi |
|
|
|
@param nLevels Number of computed levels. nLevels must be at least 2. |
|
|
|
@param nLevels Number of computed levels. nLevels must be at least 2. |
|
|
|
@param lowerLevel Lower boundary value of the lowest level. |
|
|
|
@param lowerLevel Lower boundary value of the lowest level. |
|
|
|
@param upperLevel Upper boundary value of the greatest level. |
|
|
|
@param upperLevel Upper boundary value of the greatest level. |
|
|
|
|
|
|
|
@param stream Stream for the asynchronous version. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
CV_EXPORTS void evenLevels(OutputArray levels, int nLevels, int lowerLevel, int upperLevel); |
|
|
|
CV_EXPORTS void evenLevels(OutputArray levels, int nLevels, int lowerLevel, int upperLevel, Stream& stream = Stream::Null()); |
|
|
|
|
|
|
|
|
|
|
|
/** @brief Calculates a histogram with evenly distributed bins.
|
|
|
|
/** @brief Calculates a histogram with evenly distributed bins.
|
|
|
|
|
|
|
|
|
|
|
@ -281,15 +282,17 @@ public: |
|
|
|
/** @brief Finds edges in an image using the @cite Canny86 algorithm.
|
|
|
|
/** @brief Finds edges in an image using the @cite Canny86 algorithm.
|
|
|
|
|
|
|
|
|
|
|
|
@param image Single-channel 8-bit input image. |
|
|
|
@param image Single-channel 8-bit input image. |
|
|
|
@param edges Output edge map. It has the same size and type as image . |
|
|
|
@param edges Output edge map. It has the same size and type as image. |
|
|
|
|
|
|
|
@param stream Stream for the asynchronous version. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
virtual void detect(InputArray image, OutputArray edges) = 0; |
|
|
|
virtual void detect(InputArray image, OutputArray edges, Stream& stream = Stream::Null()) = 0; |
|
|
|
/** @overload
|
|
|
|
/** @overload
|
|
|
|
@param dx First derivative of image in the vertical direction. Support only CV_32S type. |
|
|
|
@param dx First derivative of image in the vertical direction. Support only CV_32S type. |
|
|
|
@param dy First derivative of image in the horizontal direction. Support only CV_32S type. |
|
|
|
@param dy First derivative of image in the horizontal direction. Support only CV_32S type. |
|
|
|
@param edges Output edge map. It has the same size and type as image . |
|
|
|
@param edges Output edge map. It has the same size and type as image. |
|
|
|
|
|
|
|
@param stream Stream for the asynchronous version. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
virtual void detect(InputArray dx, InputArray dy, OutputArray edges) = 0; |
|
|
|
virtual void detect(InputArray dx, InputArray dy, OutputArray edges, Stream& stream = Stream::Null()) = 0; |
|
|
|
|
|
|
|
|
|
|
|
virtual void setLowThreshold(double low_thresh) = 0; |
|
|
|
virtual void setLowThreshold(double low_thresh) = 0; |
|
|
|
virtual double getLowThreshold() const = 0; |
|
|
|
virtual double getLowThreshold() const = 0; |
|
|
@ -336,18 +339,20 @@ public: |
|
|
|
\f$(\rho, \theta)\f$ . \f$\rho\f$ is the distance from the coordinate origin \f$(0,0)\f$ (top-left corner of |
|
|
|
\f$(\rho, \theta)\f$ . \f$\rho\f$ is the distance from the coordinate origin \f$(0,0)\f$ (top-left corner of |
|
|
|
the image). \f$\theta\f$ is the line rotation angle in radians ( |
|
|
|
the image). \f$\theta\f$ is the line rotation angle in radians ( |
|
|
|
\f$0 \sim \textrm{vertical line}, \pi/2 \sim \textrm{horizontal line}\f$ ). |
|
|
|
\f$0 \sim \textrm{vertical line}, \pi/2 \sim \textrm{horizontal line}\f$ ). |
|
|
|
|
|
|
|
@param stream Stream for the asynchronous version. |
|
|
|
|
|
|
|
|
|
|
|
@sa HoughLines |
|
|
|
@sa HoughLines |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
virtual void detect(InputArray src, OutputArray lines) = 0; |
|
|
|
virtual void detect(InputArray src, OutputArray lines, Stream& stream = Stream::Null()) = 0; |
|
|
|
|
|
|
|
|
|
|
|
/** @brief Downloads results from cuda::HoughLinesDetector::detect to host memory.
|
|
|
|
/** @brief Downloads results from cuda::HoughLinesDetector::detect to host memory.
|
|
|
|
|
|
|
|
|
|
|
|
@param d_lines Result of cuda::HoughLinesDetector::detect . |
|
|
|
@param d_lines Result of cuda::HoughLinesDetector::detect . |
|
|
|
@param h_lines Output host array. |
|
|
|
@param h_lines Output host array. |
|
|
|
@param h_votes Optional output array for line's votes. |
|
|
|
@param h_votes Optional output array for line's votes. |
|
|
|
|
|
|
|
@param stream Stream for the asynchronous version. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
virtual void downloadResults(InputArray d_lines, OutputArray h_lines, OutputArray h_votes = noArray()) = 0; |
|
|
|
virtual void downloadResults(InputArray d_lines, OutputArray h_lines, OutputArray h_votes = noArray(), Stream& stream = Stream::Null()) = 0; |
|
|
|
|
|
|
|
|
|
|
|
virtual void setRho(float rho) = 0; |
|
|
|
virtual void setRho(float rho) = 0; |
|
|
|
virtual float getRho() const = 0; |
|
|
|
virtual float getRho() const = 0; |
|
|
@ -391,10 +396,11 @@ public: |
|
|
|
@param lines Output vector of lines. Each line is represented by a 4-element vector |
|
|
|
@param lines Output vector of lines. Each line is represented by a 4-element vector |
|
|
|
\f$(x_1, y_1, x_2, y_2)\f$ , where \f$(x_1,y_1)\f$ and \f$(x_2, y_2)\f$ are the ending points of each detected |
|
|
|
\f$(x_1, y_1, x_2, y_2)\f$ , where \f$(x_1,y_1)\f$ and \f$(x_2, y_2)\f$ are the ending points of each detected |
|
|
|
line segment. |
|
|
|
line segment. |
|
|
|
|
|
|
|
@param stream Stream for the asynchronous version. |
|
|
|
|
|
|
|
|
|
|
|
@sa HoughLinesP |
|
|
|
@sa HoughLinesP |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
virtual void detect(InputArray src, OutputArray lines) = 0; |
|
|
|
virtual void detect(InputArray src, OutputArray lines, Stream& stream = Stream::Null()) = 0; |
|
|
|
|
|
|
|
|
|
|
|
virtual void setRho(float rho) = 0; |
|
|
|
virtual void setRho(float rho) = 0; |
|
|
|
virtual float getRho() const = 0; |
|
|
|
virtual float getRho() const = 0; |
|
|
@ -435,10 +441,11 @@ public: |
|
|
|
@param src 8-bit, single-channel grayscale input image. |
|
|
|
@param src 8-bit, single-channel grayscale input image. |
|
|
|
@param circles Output vector of found circles. Each vector is encoded as a 3-element |
|
|
|
@param circles Output vector of found circles. Each vector is encoded as a 3-element |
|
|
|
floating-point vector \f$(x, y, radius)\f$ . |
|
|
|
floating-point vector \f$(x, y, radius)\f$ . |
|
|
|
|
|
|
|
@param stream Stream for the asynchronous version. |
|
|
|
|
|
|
|
|
|
|
|
@sa HoughCircles |
|
|
|
@sa HoughCircles |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
virtual void detect(InputArray src, OutputArray circles) = 0; |
|
|
|
virtual void detect(InputArray src, OutputArray circles, Stream& stream = Stream::Null()) = 0; |
|
|
|
|
|
|
|
|
|
|
|
virtual void setDp(float dp) = 0; |
|
|
|
virtual void setDp(float dp) = 0; |
|
|
|
virtual float getDp() const = 0; |
|
|
|
virtual float getDp() const = 0; |
|
|
@ -553,8 +560,9 @@ public: |
|
|
|
positions). |
|
|
|
positions). |
|
|
|
@param mask Optional region of interest. If the image is not empty (it needs to have the type |
|
|
|
@param mask Optional region of interest. If the image is not empty (it needs to have the type |
|
|
|
CV_8UC1 and the same size as image ), it specifies the region in which the corners are detected. |
|
|
|
CV_8UC1 and the same size as image ), it specifies the region in which the corners are detected. |
|
|
|
|
|
|
|
@param stream Stream for the asynchronous version. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
virtual void detect(InputArray image, OutputArray corners, InputArray mask = noArray()) = 0; |
|
|
|
virtual void detect(InputArray image, OutputArray corners, InputArray mask = noArray(), Stream& stream = Stream::Null()) = 0; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/** @brief Creates implementation for cuda::CornersDetector .
|
|
|
|
/** @brief Creates implementation for cuda::CornersDetector .
|
|
|
@ -590,7 +598,7 @@ as src . |
|
|
|
@param sp Spatial window radius. |
|
|
|
@param sp Spatial window radius. |
|
|
|
@param sr Color window radius. |
|
|
|
@param sr Color window radius. |
|
|
|
@param criteria Termination criteria. See TermCriteria. |
|
|
|
@param criteria Termination criteria. See TermCriteria. |
|
|
|
@param stream |
|
|
|
@param stream Stream for the asynchronous version. |
|
|
|
|
|
|
|
|
|
|
|
It maps each point of the source image into another point. As a result, you have a new color and new |
|
|
|
It maps each point of the source image into another point. As a result, you have a new color and new |
|
|
|
position of each point. |
|
|
|
position of each point. |
|
|
@ -610,7 +618,7 @@ src size. The type is CV_16SC2 . |
|
|
|
@param sp Spatial window radius. |
|
|
|
@param sp Spatial window radius. |
|
|
|
@param sr Color window radius. |
|
|
|
@param sr Color window radius. |
|
|
|
@param criteria Termination criteria. See TermCriteria. |
|
|
|
@param criteria Termination criteria. See TermCriteria. |
|
|
|
@param stream |
|
|
|
@param stream Stream for the asynchronous version. |
|
|
|
|
|
|
|
|
|
|
|
@sa cuda::meanShiftFiltering |
|
|
|
@sa cuda::meanShiftFiltering |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -626,9 +634,11 @@ CV_EXPORTS void meanShiftProc(InputArray src, OutputArray dstr, OutputArray dsts |
|
|
|
@param sr Color window radius. |
|
|
|
@param sr Color window radius. |
|
|
|
@param minsize Minimum segment size. Smaller segments are merged. |
|
|
|
@param minsize Minimum segment size. Smaller segments are merged. |
|
|
|
@param criteria Termination criteria. See TermCriteria. |
|
|
|
@param criteria Termination criteria. See TermCriteria. |
|
|
|
|
|
|
|
@param stream Stream for the asynchronous version. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
CV_EXPORTS void meanShiftSegmentation(InputArray src, OutputArray dst, int sp, int sr, int minsize, |
|
|
|
CV_EXPORTS void meanShiftSegmentation(InputArray src, OutputArray dst, int sp, int sr, int minsize, |
|
|
|
TermCriteria criteria = TermCriteria(TermCriteria::MAX_ITER + TermCriteria::EPS, 5, 1)); |
|
|
|
TermCriteria criteria = TermCriteria(TermCriteria::MAX_ITER + TermCriteria::EPS, 5, 1), |
|
|
|
|
|
|
|
Stream& stream = Stream::Null()); |
|
|
|
|
|
|
|
|
|
|
|
/////////////////////////// Match Template ////////////////////////////
|
|
|
|
/////////////////////////// Match Template ////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|