Class SelectiveSearchSegmentationStrategy
- Namespace
- OpenCvSharp.XImgProc.Segmentation
- Assembly
- OpenCvSharp.dll
Base class for high-level OpenCV algorithms
public abstract class SelectiveSearchSegmentationStrategy : Algorithm, IDisposable, ICvPtrHolder
- Inheritance
-
SelectiveSearchSegmentationStrategy
- Implements
- Derived
- Inherited Members
Constructors
SelectiveSearchSegmentationStrategy(Ptr)
Creates instance by raw pointer
protected SelectiveSearchSegmentationStrategy(Ptr ptrObj)
Parameters
ptrObjPtr
Properties
PtrObj
public Ptr? PtrObj { get; }
Property Value
Methods
DisposeManaged()
Releases managed resources
protected override void DisposeManaged()
Get(int, int)
Return the score between two regions (between 0 and 1)
[SuppressMessage("Microsoft.Design", "CA1716: Identifiers should not match keywords")]
public virtual float Get(int r1, int r2)
Parameters
Returns
Merge(int, int)
Inform the strategy that two regions will be merged
public virtual void Merge(int r1, int r2)
Parameters
SetImage(InputArray, InputArray, InputArray, int)
Set a initial image, with a segementation.
public virtual void SetImage(InputArray img, InputArray regions, InputArray sizes, int imageId = -1)
Parameters
imgInputArrayThe input image. Any number of channel can be provided
regionsInputArrayA segementation of the image. The parameter must be the same size of img.
sizesInputArrayThe sizes of different regions
imageIdintIf 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.