OpenCV for Unity  2.6.0
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.9.0/index.html ) for the details of the argument of the method.
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
OpenCVForUnity.XimgprocModule.EdgeDrawing Class Reference

Class implementing the ED (EdgeDrawing) [topal2012edge], EDLines [akinlar2011edlines], EDPF [akinlar2012edpf] and EDCircles [akinlar2013edcircles] algorithms. More...

Inheritance diagram for OpenCVForUnity.XimgprocModule.EdgeDrawing:
OpenCVForUnity.CoreModule.Algorithm OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableObject

Public Member Functions

void detectEdges (Mat src)
 Detects edges in a grayscale image and prepares them to detect lines and ellipses. More...
 
void getEdgeImage (Mat dst)
 returns Edge Image prepared by detectEdges() function. More...
 
void getGradientImage (Mat dst)
 returns Gradient Image prepared by detectEdges() function. More...
 
List< MatOfPointgetSegments ()
 Returns std::vector<std::vector<Point>> of detected edge segments, see detectEdges() More...
 
MatOfInt getSegmentIndicesOfLines ()
 Returns for each line found in detectLines() its edge segment index in getSegments() More...
 
void detectLines (Mat lines)
 Detects lines. More...
 
void detectEllipses (Mat ellipses)
 Detects circles and ellipses. More...
 
void setParams (EdgeDrawing_Params parameters)
 sets parameters. More...
 
- Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
IntPtr getNativeObjAddr ()
 
virtual void clear ()
 Clears the algorithm state. More...
 
virtual bool empty ()
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. More...
 
void save (string filename)
 
virtual string getDefaultName ()
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static new EdgeDrawing __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
static Algorithm __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 

Public Attributes

const int PREWITT = 0
 
const int SOBEL = 1
 
const int SCHARR = 2
 
const int LSD = 3
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

Class implementing the ED (EdgeDrawing) [topal2012edge], EDLines [akinlar2011edlines], EDPF [akinlar2012edpf] and EDCircles [akinlar2013edcircles] algorithms.

Member Function Documentation

◆ __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
src8-bit, single-channel, grayscale input image.

◆ detectEllipses()

void OpenCVForUnity.XimgprocModule.EdgeDrawing.detectEllipses ( Mat  ellipses)

Detects circles and ellipses.

Parameters
ellipsesoutput 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
linesoutput 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
dstreturns 8-bit, single-channel output image.

◆ getGradientImage()

void OpenCVForUnity.XimgprocModule.EdgeDrawing.getGradientImage ( Mat  dst)

returns Gradient Image prepared by detectEdges() function.

Parameters
dstreturns 16-bit, single-channel output image.

◆ getSegmentIndicesOfLines()

MatOfInt OpenCVForUnity.XimgprocModule.EdgeDrawing.getSegmentIndicesOfLines ( )

Returns for each line found in detectLines() its edge segment index in getSegments()

◆ getSegments()

List<MatOfPoint> OpenCVForUnity.XimgprocModule.EdgeDrawing.getSegments ( )

Returns std::vector<std::vector<Point>> of detected edge segments, see detectEdges()

◆ setParams()

void OpenCVForUnity.XimgprocModule.EdgeDrawing.setParams ( EdgeDrawing_Params  parameters)

sets parameters.

this function is meant to be used for parameter setting in other languages than c++ like python.

Parameters
parametersParameters of the algorithm

Member Data Documentation

◆ 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: