OpenCV for Unity 2.6.4
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.
Loading...
Searching...
No Matches
OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation Class Reference

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

Public Member Functions

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

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 ( )

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)

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,
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() [4/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

◆ switchToSelectiveSearchQuality() [1/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

◆ switchToSelectiveSearchQuality() [2/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() [3/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() [4/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

◆ switchToSingleStrategy() [1/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

◆ 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 ( 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

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