Class SelectiveSearchSegmentation
Selective search segmentation algorithm. The class implements the algorithm described in @cite uijlings2013selective.
Implements
Inherited Members
Namespace: OpenCvSharp.XImgProc.Segmentation
Assembly: OpenCvSharp.dll
Syntax
public class SelectiveSearchSegmentation : Algorithm, ICvPtrHolder
Constructors
| Improve this Doc View SourceSelectiveSearchSegmentation(IntPtr)
Creates instance by raw pointer
Declaration
protected SelectiveSearchSegmentation(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | p |
Methods
| Improve this Doc View SourceAddGraphSegmentation(GraphSegmentation)
Add a new graph segmentation in the list of graph segementations to process.
Declaration
public virtual void AddGraphSegmentation(GraphSegmentation g)
Parameters
Type | Name | Description |
---|---|---|
GraphSegmentation | g | The graph segmentation |
AddImage(InputArray)
Add a new image in the list of images to process.
Declaration
public virtual void AddImage(InputArray img)
Parameters
Type | Name | Description |
---|---|---|
InputArray | img | The image |
AddStrategy(SelectiveSearchSegmentationStrategy)
Add a new strategy in the list of strategy to process.
Declaration
public virtual void AddStrategy(SelectiveSearchSegmentationStrategy s)
Parameters
Type | Name | Description |
---|---|---|
SelectiveSearchSegmentationStrategy | s | The strategy |
ClearGraphSegmentations()
Clear the list of graph segmentations to process
Declaration
public virtual void ClearGraphSegmentations()
ClearImages()
Clear the list of images to process
Declaration
public virtual void ClearImages()
ClearStrategies()
Clear the list of strategy to process;
Declaration
public virtual void ClearStrategies()
Create()
Create a new SelectiveSearchSegmentation class.
Declaration
public static SelectiveSearchSegmentation Create()
Returns
Type | Description |
---|---|
SelectiveSearchSegmentation |
DisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()
Overrides
| Improve this Doc View SourceProcess(out Rect[])
Based on all images, graph segmentations and stragies, computes all possible rects and return them
Declaration
public virtual void Process(out Rect[] rects)
Parameters
Type | Name | Description |
---|---|---|
OpenCvSharp.Rect[] | rects | The list of rects. The first ones are more relevents than the lasts ones. |
SetBaseImage(InputArray)
Set a image used by switch* functions to initialize the class
Declaration
public virtual void SetBaseImage(InputArray img)
Parameters
Type | Name | Description |
---|---|---|
InputArray | img | The image |
SwitchToSelectiveSearchFast(Int32, Int32, Single)
Initialize the class with the 'Selective search fast' parameters describled in @cite uijlings2013selective.
Declaration
public virtual void SwitchToSelectiveSearchFast(int baseK = 150, int incK = 150, float sigma = 0.8F)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | baseK | The k parameter for the first graph segmentation |
System.Int32 | incK | The increment of the k parameter for all graph segmentations |
System.Single | sigma | The sigma parameter for the graph segmentation |
SwitchToSelectiveSearchQuality(Int32, Int32, Single)
Initialize the class with the 'Selective search fast' parameters describled in @cite uijlings2013selective.
Declaration
public virtual void SwitchToSelectiveSearchQuality(int baseK = 150, int incK = 150, float sigma = 0.8F)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | baseK | The k parameter for the first graph segmentation |
System.Int32 | incK | The increment of the k parameter for all graph segmentations |
System.Single | sigma | The sigma parameter for the graph segmentation |
SwitchToSingleStrategy(Int32, Single)
Initialize the class with the 'Single stragegy' parameters describled in @cite uijlings2013selective.
Declaration
public virtual void SwitchToSingleStrategy(int k = 200, float sigma = 0.8F)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | k | The k parameter for the graph segmentation |
System.Single | sigma | The sigma parameter for the graph segmentation |