Show / Hide Table of Contents

Class SelectiveSearchSegmentationStrategyMultiple

Regroup multiple strategies for the selective search segmentation algorithm

Inheritance
System.Object
DisposableObject
DisposableCvObject
Algorithm
SelectiveSearchSegmentationStrategy
SelectiveSearchSegmentationStrategyMultiple
Implements
ICvPtrHolder
Inherited Members
SelectiveSearchSegmentationStrategy.PtrObj
SelectiveSearchSegmentationStrategy.DisposeManaged()
Algorithm.Write(FileStorage)
Algorithm.Read(FileNode)
Algorithm.Empty
Algorithm.Save(String)
Algorithm.GetDefaultName()
DisposableCvObject.ptr
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 class SelectiveSearchSegmentationStrategyMultiple : SelectiveSearchSegmentationStrategy, ICvPtrHolder

Constructors

| Improve this Doc View Source

SelectiveSearchSegmentationStrategyMultiple(IntPtr)

Creates instance by raw pointer

Declaration
protected SelectiveSearchSegmentationStrategyMultiple(IntPtr p)
Parameters
Type Name Description
IntPtr p

Methods

| Improve this Doc View Source

Create()

Create a new multiple strategy

Declaration
public static SelectiveSearchSegmentationStrategyMultiple Create()
Returns
Type Description
SelectiveSearchSegmentationStrategyMultiple
| Improve this Doc View Source

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

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

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

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

DisposeUnmanaged()

Declaration
protected override void DisposeUnmanaged()
Overrides
DisposableCvObject.DisposeUnmanaged()
| Improve this Doc View Source

Get()

Declaration
public override IntPtr Get()
Returns
Type Description
IntPtr
| 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