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

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

Public Member Functions

float getK ()
 
int getMinSize ()
 
double getSigma ()
 
void processImage (Mat src, Mat dst)
 Segment an image and store output in dst.
 
void setK (float k)
 
void setMinSize (int min_size)
 
void setSigma (double sigma)
 
- 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 ()
 Releases resources used by this object.
 
void ThrowIfDisposed ()
 Throws ObjectDisposedException if this object has been disposed.
 

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)
 Returns the native pointer, or throws CoreModule.CvException if it is zero.
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 Initializes a new instance with a zero native pointer and dispose enabled.
 
 DisposableOpenCVObject (bool isEnabledDispose)
 Initializes a new instance with a zero native pointer.
 
 DisposableOpenCVObject (IntPtr ptr)
 Initializes a new instance with the specified native pointer and dispose enabled.
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 Initializes a new instance with the specified native pointer.
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 Initializes a new instance with dispose enabled.
 
 DisposableObject (bool isEnabledDispose)
 Initializes a new instance.
 

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

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: