Show / Hide Table of Contents

Class SelectiveSearchSegmentation

Selective search segmentation algorithm. The class implements the algorithm described in @cite uijlings2013selective.

Inheritance
System.Object
DisposableObject
DisposableCvObject
Algorithm
SelectiveSearchSegmentation
Implements
ICvPtrHolder
Inherited Members
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 SelectiveSearchSegmentation : Algorithm, ICvPtrHolder

Constructors

| Improve this Doc View Source

SelectiveSearchSegmentation(IntPtr)

Creates instance by raw pointer

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

Methods

| Improve this Doc View Source

AddGraphSegmentation(GraphSegmentation)

Add a new graph segmentation in the list of graph segmentations to process.

Declaration
public virtual void AddGraphSegmentation(GraphSegmentation g)
Parameters
Type Name Description
GraphSegmentation g

The graph segmentation

| Improve this Doc View Source

AddImage(InputArray)

Add a new image in the list of images to process.

Declaration
public virtual void AddImage(InputArray img)
Parameters
Type Name Description
InputArray img

The image

| Improve this Doc View Source

AddStrategy(SelectiveSearchSegmentationStrategy)

Add a new strategy in the list of strategy to process.

Declaration
public virtual void AddStrategy(SelectiveSearchSegmentationStrategy s)
Parameters
Type Name Description
SelectiveSearchSegmentationStrategy s

The strategy

| Improve this Doc View Source

ClearGraphSegmentations()

Clear the list of graph segmentations to process

Declaration
public virtual void ClearGraphSegmentations()
| Improve this Doc View Source

ClearImages()

Clear the list of images to process

Declaration
public virtual void ClearImages()
| Improve this Doc View Source

ClearStrategies()

Clear the list of strategy to process;

Declaration
public virtual void ClearStrategies()
| Improve this Doc View Source

Create()

Create a new SelectiveSearchSegmentation class.

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

DisposeManaged()

Releases managed resources

Declaration
protected override void DisposeManaged()
Overrides
DisposableObject.DisposeManaged()
| 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

Process(out Rect[])

Based on all images, graph segmentations and stragies, computes all possible rects and return them

Declaration
public virtual void Process(out Rect[] rects)
Parameters
Type Name Description
OpenCvSharp.Rect[] rects

The list of rects. The first ones are more relevents than the lasts ones.

| Improve this Doc View Source

SetBaseImage(InputArray)

Set a image used by switch* functions to initialize the class

Declaration
public virtual void SetBaseImage(InputArray img)
Parameters
Type Name Description
InputArray img

The image

| Improve this Doc View Source

SwitchToSelectiveSearchFast(Int32, Int32, Single)

Initialize the class with the 'Selective search fast' parameters describled in @cite uijlings2013selective.

Declaration
public virtual void SwitchToSelectiveSearchFast(int baseK = 150, int incK = 150, float sigma = 0.8F)
Parameters
Type Name Description
System.Int32 baseK

The k parameter for the first graph segmentation

System.Int32 incK

The increment of the k parameter for all graph segmentations

System.Single sigma

The sigma parameter for the graph segmentation

| Improve this Doc View Source

SwitchToSelectiveSearchQuality(Int32, Int32, Single)

Initialize the class with the 'Selective search fast' parameters describled in @cite uijlings2013selective.

Declaration
public virtual void SwitchToSelectiveSearchQuality(int baseK = 150, int incK = 150, float sigma = 0.8F)
Parameters
Type Name Description
System.Int32 baseK

The k parameter for the first graph segmentation

System.Int32 incK

The increment of the k parameter for all graph segmentations

System.Single sigma

The sigma parameter for the graph segmentation

| Improve this Doc View Source

SwitchToSingleStrategy(Int32, Single)

Initialize the class with the 'Single stragegy' parameters describled in @cite uijlings2013selective.

Declaration
public virtual void SwitchToSingleStrategy(int k = 200, float sigma = 0.8F)
Parameters
Type Name Description
System.Int32 k

The k parameter for the graph segmentation

System.Single sigma

The sigma parameter for the graph segmentation

Implements

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