Show / Hide Table of Contents

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
DisposableObject
DisposableCvObject
Algorithm
SelectiveSearchSegmentationStrategy
SelectiveSearchSegmentationStrategyColor
SelectiveSearchSegmentationStrategyMultiple
Implements
ICvPtrHolder
Inherited Members
Algorithm.Write(FileStorage)
Algorithm.Read(FileNode)
Algorithm.Empty
Algorithm.Save(String)
Algorithm.GetDefaultName()
DisposableCvObject.ptr
DisposableCvObject.DisposeUnmanaged()
DisposableCvObject.CvPtr
DisposableObject.DataHandle
DisposableObject.IsDisposed
DisposableObject.IsEnabledDispose
DisposableObject.AllocatedMemory
DisposableObject.AllocatedMemorySize
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.AllocGCHandle(Object)
DisposableObject.AllocMemory(Int32)
DisposableObject.NotifyMemoryPressure(Int64)
DisposableObject.ThrowIfDisposed()
Namespace: OpenCvSharp.XImgProc.Segmentation
Assembly: OpenCvSharp.dll
Syntax
public abstract class SelectiveSearchSegmentationStrategy : Algorithm, ICvPtrHolder

Constructors

| Improve this Doc View Source

SelectiveSearchSegmentationStrategy(Ptr)

Creates instance by raw pointer

Declaration
protected SelectiveSearchSegmentationStrategy(Ptr ptrObj)
Parameters
Type Name Description
Ptr ptrObj

Properties

| Improve this Doc View Source

PtrObj

Declaration
public Ptr PtrObj { get; }
Property Value
Type Description
Ptr

Methods

| Improve this Doc View Source

DisposeManaged()

Releases managed resources

Declaration
protected override void DisposeManaged()
Overrides
DisposableObject.DisposeManaged()
| Improve this Doc View Source

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
| Improve this Doc View Source

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

| Improve this Doc View Source

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.

Implements

ICvPtrHolder
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX