OpenCV for Unity 2.6.4
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.XimgprocModule.EdgeDrawing Class Reference

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

Public Member Functions

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

Static Public Attributes

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

Protected Member Functions

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

Additional Inherited Members

- Package Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- 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.

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.

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
static

◆ PREWITT

const int OpenCVForUnity.XimgprocModule.EdgeDrawing.PREWITT = 0
static

◆ SCHARR

const int OpenCVForUnity.XimgprocModule.EdgeDrawing.SCHARR = 2
static

◆ SOBEL

const int OpenCVForUnity.XimgprocModule.EdgeDrawing.SOBEL = 1
static

The documentation for this class was generated from the following file: