Class implementing the ED (EdgeDrawing) [272], EDLines [4], EDPF [5] and EDCircles [6] algorithms.
More...
#include <opencv2/ximgproc/edge_drawing.hpp>
Class implementing the ED (EdgeDrawing) [272], EDLines [4], EDPF [5] and EDCircles [6] algorithms.
◆ GradientOperator
Enumerator |
---|
PREWITT | |
SOBEL | |
SCHARR | |
LSD | |
◆ ~EdgeDrawing()
virtual cv::ximgproc::EdgeDrawing::~EdgeDrawing |
( |
| ) |
|
|
inlinevirtual |
◆ detectEdges()
virtual void cv::ximgproc::EdgeDrawing::detectEdges |
( |
InputArray |
src | ) |
|
|
pure virtual |
Python: |
---|
| cv.ximgproc.EdgeDrawing.detectEdges( | src | ) -> | None |
Detects edges in a grayscale image and prepares them to detect lines and ellipses.
- Parameters
-
src | 8-bit, single-channel, grayscale input image. |
◆ detectEllipses()
virtual void cv::ximgproc::EdgeDrawing::detectEllipses |
( |
OutputArray |
ellipses | ) |
|
|
pure virtual |
Python: |
---|
| cv.ximgproc.EdgeDrawing.detectEllipses( | [, ellipses] | ) -> | ellipses |
Detects circles and ellipses.
- Parameters
-
ellipses | output Vec<6d> contains center point and perimeter for circles, center point, axes and angle for ellipses. |
- Note
- you should call detectEdges() before calling this function.
◆ detectLines()
virtual void cv::ximgproc::EdgeDrawing::detectLines |
( |
OutputArray |
lines | ) |
|
|
pure virtual |
Python: |
---|
| cv.ximgproc.EdgeDrawing.detectLines( | [, lines] | ) -> | lines |
Detects lines.
- Parameters
-
lines | output Vec<4f> contains the start point and the end point of detected lines. |
- Note
- you should call detectEdges() before calling this function.
◆ getEdgeImage()
virtual void cv::ximgproc::EdgeDrawing::getEdgeImage |
( |
OutputArray |
dst | ) |
|
|
pure virtual |
Python: |
---|
| cv.ximgproc.EdgeDrawing.getEdgeImage( | [, dst] | ) -> | dst |
returns Edge Image prepared by detectEdges() function.
- Parameters
-
dst | returns 8-bit, single-channel output image. |
◆ getGradientImage()
virtual void cv::ximgproc::EdgeDrawing::getGradientImage |
( |
OutputArray |
dst | ) |
|
|
pure virtual |
Python: |
---|
| cv.ximgproc.EdgeDrawing.getGradientImage( | [, dst] | ) -> | dst |
returns Gradient Image prepared by detectEdges() function.
- Parameters
-
dst | returns 16-bit, single-channel output image. |
◆ getSegmentIndicesOfLines()
virtual std::vector< int > cv::ximgproc::EdgeDrawing::getSegmentIndicesOfLines |
( |
| ) |
const |
|
pure virtual |
Python: |
---|
| cv.ximgproc.EdgeDrawing.getSegmentIndicesOfLines( | | ) -> | retval |
◆ getSegments()
virtual std::vector< std::vector< Point > > cv::ximgproc::EdgeDrawing::getSegments |
( |
| ) |
|
|
pure virtual |
Python: |
---|
| cv.ximgproc.EdgeDrawing.getSegments( | | ) -> | retval |
Returns std::vector<std::vector<Point>> of detected edge segments, see detectEdges()
◆ setParams()
Python: |
---|
| cv.ximgproc.EdgeDrawing.setParams( | parameters | ) -> | None |
sets parameters.
this function is meant to be used for parameter setting in other languages than c++ like python.
- Parameters
-
parameters | Parameters of the algorithm |
◆ params
Params cv::ximgproc::EdgeDrawing::params |
The documentation for this class was generated from the following file: