Class SelectiveSearchSegmentationStrategyMultiple
Regroup multiple strategies for the selective search segmentation algorithm
Inheritance
Implements
Inherited Members
Namespace: OpenCvSharp.XImgProc.Segmentation
Assembly: OpenCvSharp.dll
Syntax
public class SelectiveSearchSegmentationStrategyMultiple : SelectiveSearchSegmentationStrategy, ICvPtrHolder
Constructors
| Improve this Doc View SourceSelectiveSearchSegmentationStrategyMultiple(IntPtr)
Creates instance by raw pointer
Declaration
protected SelectiveSearchSegmentationStrategyMultiple(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | p |
Methods
| Improve this Doc View SourceCreate()
Create a new multiple strategy
Declaration
public static SelectiveSearchSegmentationStrategyMultiple Create()
Returns
Type | Description |
---|---|
SelectiveSearchSegmentationStrategyMultiple |
Create(SelectiveSearchSegmentationStrategy)
Create a new multiple strategy and set one subtrategy
Declaration
public static SelectiveSearchSegmentationStrategyMultiple Create(SelectiveSearchSegmentationStrategy s1)
Parameters
Type | Name | Description |
---|---|---|
SelectiveSearchSegmentationStrategy | s1 | The first strategy |
Returns
Type | Description |
---|---|
SelectiveSearchSegmentationStrategyMultiple |
Create(SelectiveSearchSegmentationStrategy, SelectiveSearchSegmentationStrategy)
Create a new multiple strategy and set one subtrategy
Declaration
public static SelectiveSearchSegmentationStrategyMultiple Create(SelectiveSearchSegmentationStrategy s1, SelectiveSearchSegmentationStrategy s2)
Parameters
Type | Name | Description |
---|---|---|
SelectiveSearchSegmentationStrategy | s1 | The first strategy |
SelectiveSearchSegmentationStrategy | s2 | The second strategy |
Returns
Type | Description |
---|---|
SelectiveSearchSegmentationStrategyMultiple |
Create(SelectiveSearchSegmentationStrategy, SelectiveSearchSegmentationStrategy, SelectiveSearchSegmentationStrategy)
Create a new multiple strategy and set one subtrategy
Declaration
public static SelectiveSearchSegmentationStrategyMultiple Create(SelectiveSearchSegmentationStrategy s1, SelectiveSearchSegmentationStrategy s2, SelectiveSearchSegmentationStrategy s3)
Parameters
Type | Name | Description |
---|---|---|
SelectiveSearchSegmentationStrategy | s1 | The first strategy |
SelectiveSearchSegmentationStrategy | s2 | The second strategy |
SelectiveSearchSegmentationStrategy | s3 | The third strategy |
Returns
Type | Description |
---|---|
SelectiveSearchSegmentationStrategyMultiple |
Create(SelectiveSearchSegmentationStrategy, SelectiveSearchSegmentationStrategy, SelectiveSearchSegmentationStrategy, SelectiveSearchSegmentationStrategy)
Create a new multiple strategy and set one subtrategy
Declaration
public static SelectiveSearchSegmentationStrategyMultiple Create(SelectiveSearchSegmentationStrategy s1, SelectiveSearchSegmentationStrategy s2, SelectiveSearchSegmentationStrategy s3, SelectiveSearchSegmentationStrategy s4)
Parameters
Type | Name | Description |
---|---|---|
SelectiveSearchSegmentationStrategy | s1 | The first strategy |
SelectiveSearchSegmentationStrategy | s2 | The second strategy |
SelectiveSearchSegmentationStrategy | s3 | The third strategy |
SelectiveSearchSegmentationStrategy | s4 | The forth strategy |
Returns
Type | Description |
---|---|
SelectiveSearchSegmentationStrategyMultiple |
Get(Int32, Int32)
Return the score between two regions (between 0 and 1)
Declaration
public virtual float Get(int r1, int r2)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | r1 | The first region |
System.Int32 | r2 | The second region |
Returns
Type | Description |
---|---|
System.Single |
Merge(Int32, Int32)
Inform the strategy that two regions will be merged
Declaration
public virtual void Merge(int r1, int r2)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | r1 | The first region |
System.Int32 | r2 | The second region |
SetImage(InputArray, InputArray, InputArray, Int32)
Set a initial image, with a segementation.
Declaration
public virtual void SetImage(InputArray img, InputArray regions, InputArray sizes, int imageId = -1)
Parameters
Type | Name | Description |
---|---|---|
InputArray | img | The input image. Any number of channel can be provided |
InputArray | regions | A segementation of the image. The parameter must be the same size of img. |
InputArray | sizes | The sizes of different regions |
System.Int32 | imageId | If not set to -1, try to cache pre-computations. If the same set og (img, regions, size) is used, the image_id need to be the same. |