Class SelectiveSearchSegmentationStrategy
Strategy for the selective search segmentation algorithm. The class implements a generic stragery for the algorithm described in @cite uijlings2013selective.
Inheritance
System.Object
SelectiveSearchSegmentationStrategy
Implements
Inherited Members
Namespace: OpenCvSharp.XImgProc.Segmentation
Assembly: OpenCvSharp.dll
Syntax
public abstract class SelectiveSearchSegmentationStrategy : Algorithm, ICvPtrHolder
Constructors
| Improve this Doc View SourceSelectiveSearchSegmentationStrategy(Ptr)
Creates instance by raw pointer
Declaration
protected SelectiveSearchSegmentationStrategy(Ptr ptrObj)
Parameters
Type | Name | Description |
---|---|---|
Ptr | ptrObj |
Properties
| Improve this Doc View SourcePtrObj
Declaration
public Ptr PtrObj { get; }
Property Value
Type | Description |
---|---|
Ptr |
Methods
| Improve this Doc View SourceDisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()
Overrides
| Improve this Doc View SourceGet(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. |