OpenCV for Unity
2.6.3
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.
|
Graph Based Segmentation Algorithm. The class implements the algorithm described in [PFF2004] . More...
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] |
Graph Based Segmentation Algorithm. The class implements the algorithm described in [PFF2004] .
|
static |
|
protectedvirtual |
Reimplemented from OpenCVForUnity.CoreModule.Algorithm.
float OpenCVForUnity.XimgprocModule.GraphSegmentation.getK | ( | ) |
int OpenCVForUnity.XimgprocModule.GraphSegmentation.getMinSize | ( | ) |
double OpenCVForUnity.XimgprocModule.GraphSegmentation.getSigma | ( | ) |
Segment an image and store output in dst.
src | The input image. Any number of channel (1 (Eg: Gray), 3 (Eg: RGB), 4 (Eg: RGB-D)) can be provided |
dst | The 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. |
void OpenCVForUnity.XimgprocModule.GraphSegmentation.setK | ( | float | k | ) |
void OpenCVForUnity.XimgprocModule.GraphSegmentation.setMinSize | ( | int | min_size | ) |
void OpenCVForUnity.XimgprocModule.GraphSegmentation.setSigma | ( | double | sigma | ) |