|
|
@ -1191,7 +1191,7 @@ protected: |
|
|
|
//! @addtogroup imgproc_feature
|
|
|
|
//! @addtogroup imgproc_feature
|
|
|
|
//! @{
|
|
|
|
//! @{
|
|
|
|
|
|
|
|
|
|
|
|
/** @example lsd_lines.cpp
|
|
|
|
/** @example samples/cpp/lsd_lines.cpp
|
|
|
|
An example using the LineSegmentDetector |
|
|
|
An example using the LineSegmentDetector |
|
|
|
\image html building_lsd.png "Sample output image" width=434 height=300 |
|
|
|
\image html building_lsd.png "Sample output image" width=434 height=300 |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -1349,11 +1349,12 @@ operation is shifted. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
CV_EXPORTS_W Mat getStructuringElement(int shape, Size ksize, Point anchor = Point(-1,-1)); |
|
|
|
CV_EXPORTS_W Mat getStructuringElement(int shape, Size ksize, Point anchor = Point(-1,-1)); |
|
|
|
|
|
|
|
|
|
|
|
/** @example Smoothing.cpp
|
|
|
|
/** @example samples/cpp/tutorial_code/ImgProc/Smoothing/Smoothing.cpp
|
|
|
|
Sample code for simple filters |
|
|
|
Sample code for simple filters |
|
|
|
![Sample screenshot](Smoothing_Tutorial_Result_Median_Filter.jpg) |
|
|
|
![Sample screenshot](Smoothing_Tutorial_Result_Median_Filter.jpg) |
|
|
|
Check @ref tutorial_gausian_median_blur_bilateral_filter "the corresponding tutorial" for more details |
|
|
|
Check @ref tutorial_gausian_median_blur_bilateral_filter "the corresponding tutorial" for more details |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/** @brief Blurs an image using the median filter.
|
|
|
|
/** @brief Blurs an image using the median filter.
|
|
|
|
|
|
|
|
|
|
|
|
The function smoothes an image using the median filter with the \f$\texttt{ksize} \times |
|
|
|
The function smoothes an image using the median filter with the \f$\texttt{ksize} \times |
|
|
@ -1556,11 +1557,12 @@ CV_EXPORTS_W void sepFilter2D( InputArray src, OutputArray dst, int ddepth, |
|
|
|
Point anchor = Point(-1,-1), |
|
|
|
Point anchor = Point(-1,-1), |
|
|
|
double delta = 0, int borderType = BORDER_DEFAULT ); |
|
|
|
double delta = 0, int borderType = BORDER_DEFAULT ); |
|
|
|
|
|
|
|
|
|
|
|
/** @example Sobel_Demo.cpp
|
|
|
|
/** @example samples/cpp/tutorial_code/ImgTrans/Sobel_Demo.cpp
|
|
|
|
Sample code using Sobel and/or Scharr OpenCV functions to make a simple Edge Detector |
|
|
|
Sample code using Sobel and/or Scharr OpenCV functions to make a simple Edge Detector |
|
|
|
![Sample screenshot](Sobel_Derivatives_Tutorial_Result.jpg) |
|
|
|
![Sample screenshot](Sobel_Derivatives_Tutorial_Result.jpg) |
|
|
|
Check @ref tutorial_sobel_derivatives "the corresponding tutorial" for more details |
|
|
|
Check @ref tutorial_sobel_derivatives "the corresponding tutorial" for more details |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/** @brief Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator.
|
|
|
|
/** @brief Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator.
|
|
|
|
|
|
|
|
|
|
|
|
In all cases except one, the \f$\texttt{ksize} \times \texttt{ksize}\f$ separable kernel is used to |
|
|
|
In all cases except one, the \f$\texttt{ksize} \times \texttt{ksize}\f$ separable kernel is used to |
|
|
@ -1656,7 +1658,7 @@ CV_EXPORTS_W void Scharr( InputArray src, OutputArray dst, int ddepth, |
|
|
|
int dx, int dy, double scale = 1, double delta = 0, |
|
|
|
int dx, int dy, double scale = 1, double delta = 0, |
|
|
|
int borderType = BORDER_DEFAULT ); |
|
|
|
int borderType = BORDER_DEFAULT ); |
|
|
|
|
|
|
|
|
|
|
|
/** @example laplace.cpp
|
|
|
|
/** @example samples/cpp/laplace.cpp
|
|
|
|
An example using Laplace transformations for edge detection |
|
|
|
An example using Laplace transformations for edge detection |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
@ -1692,7 +1694,7 @@ CV_EXPORTS_W void Laplacian( InputArray src, OutputArray dst, int ddepth, |
|
|
|
//! @addtogroup imgproc_feature
|
|
|
|
//! @addtogroup imgproc_feature
|
|
|
|
//! @{
|
|
|
|
//! @{
|
|
|
|
|
|
|
|
|
|
|
|
/** @example edge.cpp
|
|
|
|
/** @example samples/cpp/edge.cpp
|
|
|
|
This program demonstrates usage of the Canny edge detector |
|
|
|
This program demonstrates usage of the Canny edge detector |
|
|
|
|
|
|
|
|
|
|
|
Check @ref tutorial_canny_detector "the corresponding tutorial" for more details |
|
|
|
Check @ref tutorial_canny_detector "the corresponding tutorial" for more details |
|
|
@ -1932,7 +1934,7 @@ CV_EXPORTS_W void goodFeaturesToTrack( InputArray image, OutputArray corners, |
|
|
|
InputArray mask, int blockSize, |
|
|
|
InputArray mask, int blockSize, |
|
|
|
int gradientSize, bool useHarrisDetector = false, |
|
|
|
int gradientSize, bool useHarrisDetector = false, |
|
|
|
double k = 0.04 ); |
|
|
|
double k = 0.04 ); |
|
|
|
/** @example houghlines.cpp
|
|
|
|
/** @example samples/cpp/tutorial_code/ImgTrans/houghlines.cpp
|
|
|
|
An example using the Hough line detector |
|
|
|
An example using the Hough line detector |
|
|
|
![Sample input image](Hough_Lines_Tutorial_Original_Image.jpg) ![Output image](Hough_Lines_Tutorial_Result.jpg) |
|
|
|
![Sample input image](Hough_Lines_Tutorial_Original_Image.jpg) ![Output image](Hough_Lines_Tutorial_Result.jpg) |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -2021,7 +2023,7 @@ CV_EXPORTS_W void HoughLinesPointSet( InputArray _point, OutputArray _lines, int |
|
|
|
double min_rho, double max_rho, double rho_step, |
|
|
|
double min_rho, double max_rho, double rho_step, |
|
|
|
double min_theta, double max_theta, double theta_step ); |
|
|
|
double min_theta, double max_theta, double theta_step ); |
|
|
|
|
|
|
|
|
|
|
|
/** @example houghcircles.cpp
|
|
|
|
/** @example samples/cpp/tutorial_code/ImgTrans/houghcircles.cpp
|
|
|
|
An example using the Hough circle detector |
|
|
|
An example using the Hough circle detector |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
@ -2069,7 +2071,7 @@ CV_EXPORTS_W void HoughCircles( InputArray image, OutputArray circles, |
|
|
|
//! @addtogroup imgproc_filter
|
|
|
|
//! @addtogroup imgproc_filter
|
|
|
|
//! @{
|
|
|
|
//! @{
|
|
|
|
|
|
|
|
|
|
|
|
/** @example morphology2.cpp
|
|
|
|
/** @example samples/cpp/tutorial_code/ImgProc/Morphology_2.cpp
|
|
|
|
Advanced morphology Transformations sample code |
|
|
|
Advanced morphology Transformations sample code |
|
|
|
![Sample screenshot](Morphology_2_Tutorial_Result.jpg) |
|
|
|
![Sample screenshot](Morphology_2_Tutorial_Result.jpg) |
|
|
|
Check @ref tutorial_opening_closing_hats "the corresponding tutorial" for more details |
|
|
|
Check @ref tutorial_opening_closing_hats "the corresponding tutorial" for more details |
|
|
@ -2102,11 +2104,12 @@ CV_EXPORTS_W void erode( InputArray src, OutputArray dst, InputArray kernel, |
|
|
|
int borderType = BORDER_CONSTANT, |
|
|
|
int borderType = BORDER_CONSTANT, |
|
|
|
const Scalar& borderValue = morphologyDefaultBorderValue() ); |
|
|
|
const Scalar& borderValue = morphologyDefaultBorderValue() ); |
|
|
|
|
|
|
|
|
|
|
|
/** @example Morphology_1.cpp
|
|
|
|
/** @example samples/cpp/tutorial_code/ImgProc/Morphology_1.cpp
|
|
|
|
Erosion and Dilation sample code |
|
|
|
Erosion and Dilation sample code |
|
|
|
![Sample Screenshot-Erosion](Morphology_1_Tutorial_Erosion_Result.jpg)![Sample Screenshot-Dilation](Morphology_1_Tutorial_Dilation_Result.jpg) |
|
|
|
![Sample Screenshot-Erosion](Morphology_1_Tutorial_Erosion_Result.jpg)![Sample Screenshot-Dilation](Morphology_1_Tutorial_Dilation_Result.jpg) |
|
|
|
Check @ref tutorial_erosion_dilatation "the corresponding tutorial" for more details |
|
|
|
Check @ref tutorial_erosion_dilatation "the corresponding tutorial" for more details |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/** @brief Dilates an image by using a specific structuring element.
|
|
|
|
/** @brief Dilates an image by using a specific structuring element.
|
|
|
|
|
|
|
|
|
|
|
|
The function dilates the source image using the specified structuring element that determines the |
|
|
|
The function dilates the source image using the specified structuring element that determines the |
|
|
@ -2236,9 +2239,10 @@ CV_EXPORTS_W void warpAffine( InputArray src, OutputArray dst, |
|
|
|
int borderMode = BORDER_CONSTANT, |
|
|
|
int borderMode = BORDER_CONSTANT, |
|
|
|
const Scalar& borderValue = Scalar()); |
|
|
|
const Scalar& borderValue = Scalar()); |
|
|
|
|
|
|
|
|
|
|
|
/** @example warpPerspective_demo.cpp
|
|
|
|
/** @example samples/cpp/warpPerspective_demo.cpp
|
|
|
|
An example program shows using cv::findHomography and cv::warpPerspective for image warping |
|
|
|
An example program shows using cv::findHomography and cv::warpPerspective for image warping |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/** @brief Applies a perspective transformation to an image.
|
|
|
|
/** @brief Applies a perspective transformation to an image.
|
|
|
|
|
|
|
|
|
|
|
|
The function warpPerspective transforms the source image using the specified matrix: |
|
|
|
The function warpPerspective transforms the source image using the specified matrix: |
|
|
@ -2434,7 +2438,7 @@ source image. The center must be inside the image. |
|
|
|
CV_EXPORTS_W void getRectSubPix( InputArray image, Size patchSize, |
|
|
|
CV_EXPORTS_W void getRectSubPix( InputArray image, Size patchSize, |
|
|
|
Point2f center, OutputArray patch, int patchType = -1 ); |
|
|
|
Point2f center, OutputArray patch, int patchType = -1 ); |
|
|
|
|
|
|
|
|
|
|
|
/** @example polar_transforms.cpp
|
|
|
|
/** @example samples/cpp/polar_transforms.cpp
|
|
|
|
An example using the cv::linearPolar and cv::logPolar operations |
|
|
|
An example using the cv::linearPolar and cv::logPolar operations |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
@ -2869,9 +2873,10 @@ CV_EXPORTS_W void adaptiveThreshold( InputArray src, OutputArray dst, |
|
|
|
//! @addtogroup imgproc_filter
|
|
|
|
//! @addtogroup imgproc_filter
|
|
|
|
//! @{
|
|
|
|
//! @{
|
|
|
|
|
|
|
|
|
|
|
|
/** @example Pyramids.cpp
|
|
|
|
/** @example samples/cpp/tutorial_code/ImgProc/Pyramids/Pyramids.cpp
|
|
|
|
An example using pyrDown and pyrUp functions |
|
|
|
An example using pyrDown and pyrUp functions |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/** @brief Blurs an image and downsamples it.
|
|
|
|
/** @brief Blurs an image and downsamples it.
|
|
|
|
|
|
|
|
|
|
|
|
By default, size of the output image is computed as `Size((src.cols+1)/2, (src.rows+1)/2)`, but in |
|
|
|
By default, size of the output image is computed as `Size((src.cols+1)/2, (src.rows+1)/2)`, but in |
|
|
@ -3120,7 +3125,7 @@ CV_EXPORTS_AS(undistortPointsIter) void undistortPoints( InputArray src, OutputA |
|
|
|
//! @addtogroup imgproc_hist
|
|
|
|
//! @addtogroup imgproc_hist
|
|
|
|
//! @{
|
|
|
|
//! @{
|
|
|
|
|
|
|
|
|
|
|
|
/** @example demhist.cpp
|
|
|
|
/** @example samples/cpp/demhist.cpp
|
|
|
|
An example for creating histograms of an image |
|
|
|
An example for creating histograms of an image |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
@ -3317,7 +3322,7 @@ CV_EXPORTS_AS(EMD) float wrapperEMD( InputArray signature1, InputArray signature |
|
|
|
|
|
|
|
|
|
|
|
//! @} imgproc_hist
|
|
|
|
//! @} imgproc_hist
|
|
|
|
|
|
|
|
|
|
|
|
/** @example watershed.cpp
|
|
|
|
/** @example samples/cpp/watershed.cpp
|
|
|
|
An example using the watershed algorithm |
|
|
|
An example using the watershed algorithm |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
@ -3397,7 +3402,7 @@ CV_EXPORTS_W void pyrMeanShiftFiltering( InputArray src, OutputArray dst, |
|
|
|
//! @addtogroup imgproc_misc
|
|
|
|
//! @addtogroup imgproc_misc
|
|
|
|
//! @{
|
|
|
|
//! @{
|
|
|
|
|
|
|
|
|
|
|
|
/** @example grabcut.cpp
|
|
|
|
/** @example samples/cpp/grabcut.cpp
|
|
|
|
An example using the GrabCut algorithm |
|
|
|
An example using the GrabCut algorithm |
|
|
|
![Sample Screenshot](grabcut_output1.jpg) |
|
|
|
![Sample Screenshot](grabcut_output1.jpg) |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -3424,11 +3429,10 @@ CV_EXPORTS_W void grabCut( InputArray img, InputOutputArray mask, Rect rect, |
|
|
|
InputOutputArray bgdModel, InputOutputArray fgdModel, |
|
|
|
InputOutputArray bgdModel, InputOutputArray fgdModel, |
|
|
|
int iterCount, int mode = GC_EVAL ); |
|
|
|
int iterCount, int mode = GC_EVAL ); |
|
|
|
|
|
|
|
|
|
|
|
/** @example distrans.cpp
|
|
|
|
/** @example samples/cpp/distrans.cpp
|
|
|
|
An example on using the distance transform\
|
|
|
|
An example on using the distance transform |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @brief Calculates the distance to the closest zero pixel for each pixel of the source image.
|
|
|
|
/** @brief Calculates the distance to the closest zero pixel for each pixel of the source image.
|
|
|
|
|
|
|
|
|
|
|
|
The function cv::distanceTransform calculates the approximate or precise distance from every binary |
|
|
|
The function cv::distanceTransform calculates the approximate or precise distance from every binary |
|
|
@ -3500,7 +3504,7 @@ the first variant of the function and distanceType == #DIST_L1. |
|
|
|
CV_EXPORTS_W void distanceTransform( InputArray src, OutputArray dst, |
|
|
|
CV_EXPORTS_W void distanceTransform( InputArray src, OutputArray dst, |
|
|
|
int distanceType, int maskSize, int dstType=CV_32F); |
|
|
|
int distanceType, int maskSize, int dstType=CV_32F); |
|
|
|
|
|
|
|
|
|
|
|
/** @example ffilldemo.cpp
|
|
|
|
/** @example samples/cpp/ffilldemo.cpp
|
|
|
|
An example using the FloodFill technique |
|
|
|
An example using the FloodFill technique |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
@ -3701,9 +3705,10 @@ enum TemplateMatchModes { |
|
|
|
TM_CCOEFF_NORMED = 5 //!< \f[R(x,y)= \frac{ \sum_{x',y'} (T'(x',y') \cdot I'(x+x',y+y')) }{ \sqrt{\sum_{x',y'}T'(x',y')^2 \cdot \sum_{x',y'} I'(x+x',y+y')^2} }\f]
|
|
|
|
TM_CCOEFF_NORMED = 5 //!< \f[R(x,y)= \frac{ \sum_{x',y'} (T'(x',y') \cdot I'(x+x',y+y')) }{ \sqrt{\sum_{x',y'}T'(x',y')^2 \cdot \sum_{x',y'} I'(x+x',y+y')^2} }\f]
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/** @example MatchTemplate_Demo.cpp
|
|
|
|
/** @example samples/cpp/tutorial_code/Histograms_Matching/MatchTemplate_Demo.cpp
|
|
|
|
An example using Template Matching algorithm |
|
|
|
An example using Template Matching algorithm |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/** @brief Compares a template against overlapped image regions.
|
|
|
|
/** @brief Compares a template against overlapped image regions.
|
|
|
|
|
|
|
|
|
|
|
|
The function slides through image , compares the overlapped patches of size \f$w \times h\f$ against |
|
|
|
The function slides through image , compares the overlapped patches of size \f$w \times h\f$ against |
|
|
@ -3735,6 +3740,10 @@ CV_EXPORTS_W void matchTemplate( InputArray image, InputArray templ, |
|
|
|
//! @addtogroup imgproc_shape
|
|
|
|
//! @addtogroup imgproc_shape
|
|
|
|
//! @{
|
|
|
|
//! @{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @example samples/cpp/connected_components.cpp
|
|
|
|
|
|
|
|
This program demonstrates connected components and use of the trackbar |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/** @brief computes the connected components labeled image of boolean image
|
|
|
|
/** @brief computes the connected components labeled image of boolean image
|
|
|
|
|
|
|
|
|
|
|
|
image with 4 or 8 way connectivity - returns N, the total number of labels [0, N-1] where 0 |
|
|
|
image with 4 or 8 way connectivity - returns N, the total number of labels [0, N-1] where 0 |
|
|
@ -3842,6 +3851,16 @@ CV_EXPORTS_W void findContours( InputOutputArray image, OutputArrayOfArrays cont |
|
|
|
CV_EXPORTS void findContours( InputOutputArray image, OutputArrayOfArrays contours, |
|
|
|
CV_EXPORTS void findContours( InputOutputArray image, OutputArrayOfArrays contours, |
|
|
|
int mode, int method, Point offset = Point()); |
|
|
|
int mode, int method, Point offset = Point()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @example samples/cpp/squares.cpp
|
|
|
|
|
|
|
|
A program using pyramid scaling, Canny, contours and contour simplification to find |
|
|
|
|
|
|
|
squares in a list of images (pic1-6.png). Returns sequence of squares detected on the image. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @example samples/tapi/squares.cpp
|
|
|
|
|
|
|
|
A program using pyramid scaling, Canny, contours and contour simplification to find |
|
|
|
|
|
|
|
squares in the input image. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/** @brief Approximates a polygonal curve(s) with the specified precision.
|
|
|
|
/** @brief Approximates a polygonal curve(s) with the specified precision.
|
|
|
|
|
|
|
|
|
|
|
|
The function cv::approxPolyDP approximates a curve or a polygon with another curve/polygon with less |
|
|
|
The function cv::approxPolyDP approximates a curve or a polygon with another curve/polygon with less |
|
|
@ -3940,7 +3959,7 @@ The function finds the minimal enclosing circle of a 2D point set using an itera |
|
|
|
CV_EXPORTS_W void minEnclosingCircle( InputArray points, |
|
|
|
CV_EXPORTS_W void minEnclosingCircle( InputArray points, |
|
|
|
CV_OUT Point2f& center, CV_OUT float& radius ); |
|
|
|
CV_OUT Point2f& center, CV_OUT float& radius ); |
|
|
|
|
|
|
|
|
|
|
|
/** @example minarea.cpp
|
|
|
|
/** @example samples/cpp/minarea.cpp
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/** @brief Finds a triangle of minimum area enclosing a 2D point set and returns its area.
|
|
|
|
/** @brief Finds a triangle of minimum area enclosing a 2D point set and returns its area.
|
|
|
@ -3976,7 +3995,7 @@ The function compares two shapes. All three implemented methods use the Hu invar |
|
|
|
CV_EXPORTS_W double matchShapes( InputArray contour1, InputArray contour2, |
|
|
|
CV_EXPORTS_W double matchShapes( InputArray contour1, InputArray contour2, |
|
|
|
int method, double parameter ); |
|
|
|
int method, double parameter ); |
|
|
|
|
|
|
|
|
|
|
|
/** @example convexhull.cpp
|
|
|
|
/** @example samples/cpp/convexhull.cpp
|
|
|
|
An example using the convexHull functionality |
|
|
|
An example using the convexHull functionality |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
@ -4036,7 +4055,7 @@ CV_EXPORTS_W bool isContourConvex( InputArray contour ); |
|
|
|
CV_EXPORTS_W float intersectConvexConvex( InputArray _p1, InputArray _p2, |
|
|
|
CV_EXPORTS_W float intersectConvexConvex( InputArray _p1, InputArray _p2, |
|
|
|
OutputArray _p12, bool handleNested = true ); |
|
|
|
OutputArray _p12, bool handleNested = true ); |
|
|
|
|
|
|
|
|
|
|
|
/** @example fitellipse.cpp
|
|
|
|
/** @example samples/cpp/fitellipse.cpp
|
|
|
|
An example using the fitEllipse technique |
|
|
|
An example using the fitEllipse technique |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
@ -4253,9 +4272,10 @@ enum ColormapTypes |
|
|
|
COLORMAP_PARULA = 12 //!< ![parula](pics/colormaps/colorscale_parula.jpg)
|
|
|
|
COLORMAP_PARULA = 12 //!< ![parula](pics/colormaps/colorscale_parula.jpg)
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/** @example falsecolor.cpp
|
|
|
|
/** @example samples/cpp/falsecolor.cpp
|
|
|
|
An example using applyColorMap function |
|
|
|
An example using applyColorMap function |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/** @brief Applies a GNU Octave/MATLAB equivalent colormap on a given image.
|
|
|
|
/** @brief Applies a GNU Octave/MATLAB equivalent colormap on a given image.
|
|
|
|
|
|
|
|
|
|
|
|
@param src The source image, grayscale or colored of type CV_8UC1 or CV_8UC3. |
|
|
|
@param src The source image, grayscale or colored of type CV_8UC1 or CV_8UC3. |
|
|
@ -4342,9 +4362,10 @@ CV_EXPORTS void rectangle(CV_IN_OUT Mat& img, Rect rec, |
|
|
|
const Scalar& color, int thickness = 1, |
|
|
|
const Scalar& color, int thickness = 1, |
|
|
|
int lineType = LINE_8, int shift = 0); |
|
|
|
int lineType = LINE_8, int shift = 0); |
|
|
|
|
|
|
|
|
|
|
|
/** @example Drawing_2.cpp
|
|
|
|
/** @example samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_2.cpp
|
|
|
|
An example using drawing functions |
|
|
|
An example using drawing functions |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/** @brief Draws a circle.
|
|
|
|
/** @brief Draws a circle.
|
|
|
|
|
|
|
|
|
|
|
|
The function cv::circle draws a simple or filled circle with a given center and radius. |
|
|
|
The function cv::circle draws a simple or filled circle with a given center and radius. |
|
|
@ -4468,9 +4489,11 @@ CV_EXPORTS void fillPoly(Mat& img, const Point** pts, |
|
|
|
const Scalar& color, int lineType = LINE_8, int shift = 0, |
|
|
|
const Scalar& color, int lineType = LINE_8, int shift = 0, |
|
|
|
Point offset = Point() ); |
|
|
|
Point offset = Point() ); |
|
|
|
|
|
|
|
|
|
|
|
/** @example Drawing_1.cpp
|
|
|
|
/** @example samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_1.cpp
|
|
|
|
An example using drawing functions |
|
|
|
An example using drawing functions |
|
|
|
|
|
|
|
Check @ref tutorial_random_generator_and_text "the corresponding tutorial" for more details |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/** @brief Fills the area bounded by one or more polygons.
|
|
|
|
/** @brief Fills the area bounded by one or more polygons.
|
|
|
|
|
|
|
|
|
|
|
|
The function cv::fillPoly fills an area bounded by several polygonal contours. The function can fill |
|
|
|
The function cv::fillPoly fills an area bounded by several polygonal contours. The function can fill |
|
|
@ -4510,12 +4533,12 @@ CV_EXPORTS_W void polylines(InputOutputArray img, InputArrayOfArrays pts, |
|
|
|
bool isClosed, const Scalar& color, |
|
|
|
bool isClosed, const Scalar& color, |
|
|
|
int thickness = 1, int lineType = LINE_8, int shift = 0 ); |
|
|
|
int thickness = 1, int lineType = LINE_8, int shift = 0 ); |
|
|
|
|
|
|
|
|
|
|
|
/** @example contours2.cpp
|
|
|
|
/** @example samples/cpp/contours2.cpp
|
|
|
|
An example program illustrates the use of cv::findContours and cv::drawContours |
|
|
|
An example program illustrates the use of cv::findContours and cv::drawContours |
|
|
|
\image html WindowsQtContoursOutput.png "Screenshot of the program" |
|
|
|
\image html WindowsQtContoursOutput.png "Screenshot of the program" |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/** @example segment_objects.cpp
|
|
|
|
/** @example samples/cpp/segment_objects.cpp
|
|
|
|
An example using drawContours to clean up a background segmentation result |
|
|
|
An example using drawContours to clean up a background segmentation result |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|