|
OpenCV for Unity 3.0.0
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.12.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 | |
| 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 () |
| 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.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] |
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 | ) |