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.SelectiveSearchSegmentation Class Reference

Selective search segmentation algorithm The class implements the algorithm described in [uijlings2013selective]. More...

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

Public Member Functions

void setBaseImage (Mat img)
 Set a image used by switch* functions to initialize the class. More...
 
void switchToSingleStrategy (int k, float sigma)
 Initialize the class with the 'Single stragegy' parameters describled in [uijlings2013selective]. More...
 
void switchToSingleStrategy (int k)
 Initialize the class with the 'Single stragegy' parameters describled in [uijlings2013selective]. More...
 
void switchToSingleStrategy ()
 Initialize the class with the 'Single stragegy' parameters describled in [uijlings2013selective]. More...
 
void switchToSelectiveSearchFast (int base_k, int inc_k, float sigma)
 Initialize the class with the 'Selective search fast' parameters describled in [uijlings2013selective]. More...
 
void switchToSelectiveSearchFast (int base_k, int inc_k)
 Initialize the class with the 'Selective search fast' parameters describled in [uijlings2013selective]. More...
 
void switchToSelectiveSearchFast (int base_k)
 Initialize the class with the 'Selective search fast' parameters describled in [uijlings2013selective]. More...
 
void switchToSelectiveSearchFast ()
 Initialize the class with the 'Selective search fast' parameters describled in [uijlings2013selective]. More...
 
void switchToSelectiveSearchQuality (int base_k, int inc_k, float sigma)
 Initialize the class with the 'Selective search fast' parameters describled in [uijlings2013selective]. More...
 
void switchToSelectiveSearchQuality (int base_k, int inc_k)
 Initialize the class with the 'Selective search fast' parameters describled in [uijlings2013selective]. More...
 
void switchToSelectiveSearchQuality (int base_k)
 Initialize the class with the 'Selective search fast' parameters describled in [uijlings2013selective]. More...
 
void switchToSelectiveSearchQuality ()
 Initialize the class with the 'Selective search fast' parameters describled in [uijlings2013selective]. More...
 
void addImage (Mat img)
 Add a new image in the list of images to process. More...
 
void clearImages ()
 Clear the list of images to process. More...
 
void addGraphSegmentation (GraphSegmentation g)
 Add a new graph segmentation in the list of graph segementations to process. More...
 
void clearGraphSegmentations ()
 Clear the list of graph segmentations to process;. More...
 
void addStrategy (SelectiveSearchSegmentationStrategy s)
 Add a new strategy in the list of strategy to process. More...
 
void clearStrategies ()
 Clear the list of strategy to process;. More...
 
void process (MatOfRect rects)
 Based on all images, graph segmentations and stragies, computes all possible rects and return them. More...
 
- 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 SelectiveSearchSegmentation __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

Selective search segmentation algorithm The class implements the algorithm described in [uijlings2013selective].

Member Function Documentation

◆ __fromPtr__()

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

◆ addGraphSegmentation()

void OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation.addGraphSegmentation ( GraphSegmentation  g)

Add a new graph segmentation in the list of graph segementations to process.

Parameters
gThe graph segmentation

◆ addImage()

void OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation.addImage ( Mat  img)

Add a new image in the list of images to process.

Parameters
imgThe image

◆ addStrategy()

void OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation.addStrategy ( SelectiveSearchSegmentationStrategy  s)

Add a new strategy in the list of strategy to process.

Parameters
sThe strategy

◆ clearGraphSegmentations()

void OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation.clearGraphSegmentations ( )

Clear the list of graph segmentations to process;.

◆ clearImages()

void OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation.clearImages ( )

Clear the list of images to process.

◆ clearStrategies()

void OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation.clearStrategies ( )

Clear the list of strategy to process;.

◆ Dispose()

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

◆ process()

void OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation.process ( MatOfRect  rects)

Based on all images, graph segmentations and stragies, computes all possible rects and return them.

Parameters
rectsThe list of rects. The first ones are more relevents than the lasts ones.

◆ setBaseImage()

void OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation.setBaseImage ( Mat  img)

Set a image used by switch* functions to initialize the class.

Parameters
imgThe image

◆ switchToSelectiveSearchFast() [1/4]

void OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation.switchToSelectiveSearchFast ( int  base_k,
int  inc_k,
float  sigma 
)

Initialize the class with the 'Selective search fast' parameters describled in [uijlings2013selective].

Parameters
base_kThe k parameter for the first graph segmentation
inc_kThe increment of the k parameter for all graph segmentations
sigmaThe sigma parameter for the graph segmentation

◆ switchToSelectiveSearchFast() [2/4]

void OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation.switchToSelectiveSearchFast ( int  base_k,
int  inc_k 
)

Initialize the class with the 'Selective search fast' parameters describled in [uijlings2013selective].

Parameters
base_kThe k parameter for the first graph segmentation
inc_kThe increment of the k parameter for all graph segmentations
sigmaThe sigma parameter for the graph segmentation

◆ switchToSelectiveSearchFast() [3/4]

void OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation.switchToSelectiveSearchFast ( int  base_k)

Initialize the class with the 'Selective search fast' parameters describled in [uijlings2013selective].

Parameters
base_kThe k parameter for the first graph segmentation
inc_kThe increment of the k parameter for all graph segmentations
sigmaThe sigma parameter for the graph segmentation

◆ switchToSelectiveSearchFast() [4/4]

void OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation.switchToSelectiveSearchFast ( )

Initialize the class with the 'Selective search fast' parameters describled in [uijlings2013selective].

Parameters
base_kThe k parameter for the first graph segmentation
inc_kThe increment of the k parameter for all graph segmentations
sigmaThe sigma parameter for the graph segmentation

◆ switchToSelectiveSearchQuality() [1/4]

void OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation.switchToSelectiveSearchQuality ( int  base_k,
int  inc_k,
float  sigma 
)

Initialize the class with the 'Selective search fast' parameters describled in [uijlings2013selective].

Parameters
base_kThe k parameter for the first graph segmentation
inc_kThe increment of the k parameter for all graph segmentations
sigmaThe sigma parameter for the graph segmentation

◆ switchToSelectiveSearchQuality() [2/4]

void OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation.switchToSelectiveSearchQuality ( int  base_k,
int  inc_k 
)

Initialize the class with the 'Selective search fast' parameters describled in [uijlings2013selective].

Parameters
base_kThe k parameter for the first graph segmentation
inc_kThe increment of the k parameter for all graph segmentations
sigmaThe sigma parameter for the graph segmentation

◆ switchToSelectiveSearchQuality() [3/4]

void OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation.switchToSelectiveSearchQuality ( int  base_k)

Initialize the class with the 'Selective search fast' parameters describled in [uijlings2013selective].

Parameters
base_kThe k parameter for the first graph segmentation
inc_kThe increment of the k parameter for all graph segmentations
sigmaThe sigma parameter for the graph segmentation

◆ switchToSelectiveSearchQuality() [4/4]

void OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation.switchToSelectiveSearchQuality ( )

Initialize the class with the 'Selective search fast' parameters describled in [uijlings2013selective].

Parameters
base_kThe k parameter for the first graph segmentation
inc_kThe increment of the k parameter for all graph segmentations
sigmaThe sigma parameter for the graph segmentation

◆ switchToSingleStrategy() [1/3]

void OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation.switchToSingleStrategy ( int  k,
float  sigma 
)

Initialize the class with the 'Single stragegy' parameters describled in [uijlings2013selective].

Parameters
kThe k parameter for the graph segmentation
sigmaThe sigma parameter for the graph segmentation

◆ switchToSingleStrategy() [2/3]

void OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation.switchToSingleStrategy ( int  k)

Initialize the class with the 'Single stragegy' parameters describled in [uijlings2013selective].

Parameters
kThe k parameter for the graph segmentation
sigmaThe sigma parameter for the graph segmentation

◆ switchToSingleStrategy() [3/3]

void OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation.switchToSingleStrategy ( )

Initialize the class with the 'Single stragegy' parameters describled in [uijlings2013selective].

Parameters
kThe k parameter for the graph segmentation
sigmaThe sigma parameter for the graph segmentation

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