Class implementing the ED (EdgeDrawing) [topal2012edge], EDLines [akinlar2011edlines], EDPF [akinlar2012edpf] and EDCircles [akinlar2013edcircles] algorithms.
More...
Class implementing the ED (EdgeDrawing) [topal2012edge], EDLines [akinlar2011edlines], EDPF [akinlar2012edpf] and EDCircles [akinlar2013edcircles] algorithms.
◆ __fromPtr__()
static new EdgeDrawing OpenCVForUnity.XimgprocModule.EdgeDrawing.__fromPtr__ |
( |
IntPtr |
addr | ) |
|
|
static |
◆ detectEdges()
void OpenCVForUnity.XimgprocModule.EdgeDrawing.detectEdges |
( |
Mat |
src | ) |
|
Detects edges in a grayscale image and prepares them to detect lines and ellipses.
- Parameters
-
src | 8-bit, single-channel, grayscale input image. |
◆ detectEllipses()
void OpenCVForUnity.XimgprocModule.EdgeDrawing.detectEllipses |
( |
Mat |
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()
void OpenCVForUnity.XimgprocModule.EdgeDrawing.detectLines |
( |
Mat |
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.
◆ Dispose()
override void OpenCVForUnity.XimgprocModule.EdgeDrawing.Dispose |
( |
bool |
disposing | ) |
|
|
protectedvirtual |
◆ getEdgeImage()
void OpenCVForUnity.XimgprocModule.EdgeDrawing.getEdgeImage |
( |
Mat |
dst | ) |
|
returns Edge Image prepared by detectEdges() function.
- Parameters
-
dst | returns 8-bit, single-channel output image. |
◆ getGradientImage()
void OpenCVForUnity.XimgprocModule.EdgeDrawing.getGradientImage |
( |
Mat |
dst | ) |
|
returns Gradient Image prepared by detectEdges() function.
- Parameters
-
dst | returns 16-bit, single-channel output image. |
◆ getSegmentIndicesOfLines()
MatOfInt OpenCVForUnity.XimgprocModule.EdgeDrawing.getSegmentIndicesOfLines |
( |
| ) |
|
◆ getSegments()
List<MatOfPoint> OpenCVForUnity.XimgprocModule.EdgeDrawing.getSegments |
( |
| ) |
|
Returns std::vector<std::vector<Point>> of detected edge segments, see detectEdges()
◆ setParams()
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 |
◆ LSD
const int OpenCVForUnity.XimgprocModule.EdgeDrawing.LSD = 3 |
◆ PREWITT
const int OpenCVForUnity.XimgprocModule.EdgeDrawing.PREWITT = 0 |
◆ SCHARR
const int OpenCVForUnity.XimgprocModule.EdgeDrawing.SCHARR = 2 |
◆ SOBEL
const int OpenCVForUnity.XimgprocModule.EdgeDrawing.SOBEL = 1 |
The documentation for this class was generated from the following file:
- OpenCVForUnity/Assets/OpenCVForUnity/org/opencv_contrib/ximgproc/EdgeDrawing.cs