Table of Contents

Class ObjectnessBING

Namespace
OpenCvSharp.Saliency
Assembly
OpenCvSharp.dll

Objectness saliency using the Binarized Normed Gradients (BING) algorithm.

public class ObjectnessBING : Algorithm, IDisposable
Inheritance
ObjectnessBING
Implements
Inherited Members

Properties

Base

Gets or sets the base value used internally by the BING algorithm.

public double Base { get; set; }

Property Value

double

NSS

Gets or sets the NSS value.

public int NSS { get; set; }

Property Value

int

W

Gets or sets the W value.

public int W { get; set; }

Property Value

int

Methods

ComputeSaliency(InputArray, out Vec4i[])

Computes objectness proposals. The model files must be loaded via SetTrainingPath(string) before calling this method.

public virtual bool ComputeSaliency(InputArray image, out Vec4i[] objectnessBoundingBox)

Parameters

image InputArray

Input image.

objectnessBoundingBox Vec4i[]

Detected objectness bounding boxes, each as (minX, minY, maxX, maxY). Sorted by descending objectness score.

Returns

bool

true if the computation succeeded.

Create()

Creates an ObjectnessBING instance.

public static ObjectnessBING Create()

Returns

ObjectnessBING

GetObjectnessValues()

Returns the objectness score for each bounding box in the order returned by ComputeSaliency(InputArray, out Vec4i[]). A larger value indicates a higher likelihood of being an object.

public float[] GetObjectnessValues()

Returns

float[]

SetBBResDir(string)

Sets the directory path for writing optional output results.

public void SetBBResDir(string resultsDir)

Parameters

resultsDir string

SetTrainingPath(string)

Sets the path to the trained model files required by the BING algorithm.

public void SetTrainingPath(string trainingPath)

Parameters

trainingPath string