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 | Protected Member Functions | List of all members
OpenCVForUnity.XimgprocModule.GraphSegmentation Class Reference

Graph Based Segmentation Algorithm. The class implements the algorithm described in [PFF2004] . More...

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

Public Member Functions

void processImage (Mat src, Mat dst)
 Segment an image and store output in dst. More...
 
void setSigma (double sigma)
 
double getSigma ()
 
void setK (float k)
 
float getK ()
 
void setMinSize (int min_size)
 
int getMinSize ()
 
- 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 GraphSegmentation __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)
 

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

Graph Based Segmentation Algorithm. The class implements the algorithm described in [PFF2004] .

Member Function Documentation

◆ __fromPtr__()

static new GraphSegmentation OpenCVForUnity.XimgprocModule.GraphSegmentation.__fromPtr__ ( IntPtr  addr)
static

◆ Dispose()

override void OpenCVForUnity.XimgprocModule.GraphSegmentation.Dispose ( bool  disposing)
protectedvirtual

◆ getK()

float OpenCVForUnity.XimgprocModule.GraphSegmentation.getK ( )

◆ getMinSize()

int OpenCVForUnity.XimgprocModule.GraphSegmentation.getMinSize ( )

◆ getSigma()

double OpenCVForUnity.XimgprocModule.GraphSegmentation.getSigma ( )

◆ processImage()

void OpenCVForUnity.XimgprocModule.GraphSegmentation.processImage ( Mat  src,
Mat  dst 
)

Segment an image and store output in dst.

Parameters
srcThe input image. Any number of channel (1 (Eg: Gray), 3 (Eg: RGB), 4 (Eg: RGB-D)) can be provided
dstThe output segmentation. It's a CV_32SC1 Mat with the same number of cols and rows as input image, with an unique, sequential, id for each pixel.

◆ setK()

void OpenCVForUnity.XimgprocModule.GraphSegmentation.setK ( float  k)

◆ setMinSize()

void OpenCVForUnity.XimgprocModule.GraphSegmentation.setMinSize ( int  min_size)

◆ setSigma()

void OpenCVForUnity.XimgprocModule.GraphSegmentation.setSigma ( double  sigma)

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