Table of Contents

Class StaticSaliencySpectralResidual

Namespace
OpenCvSharp.Saliency
Assembly
OpenCvSharp.dll

The Spectral Residual approach for static saliency detection.

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

Properties

ImageHeight

Gets or sets the resize height used during internal computation.

public int ImageHeight { get; set; }

Property Value

int

ImageWidth

Gets or sets the resize width used during internal computation.

public int ImageWidth { get; set; }

Property Value

int

Methods

ComputeBinaryMap(InputArray, OutputArray)

Computes a binary saliency map from the given saliency map using an adaptive threshold.

public virtual bool ComputeBinaryMap(InputArray saliencyMap, OutputArray binaryMap)

Parameters

saliencyMap InputArray

The input saliency map (CV_32FC1).

binaryMap OutputArray

The computed binary map.

Returns

bool

true if the binary map was computed successfully.

ComputeSaliency(InputArray, OutputArray)

Computes the saliency map.

public virtual bool ComputeSaliency(InputArray image, OutputArray saliencyMap)

Parameters

image InputArray

The input image.

saliencyMap OutputArray

The computed saliency map (CV_32FC1).

Returns

bool

true if the saliency map was computed successfully.

Create()

Creates a StaticSaliencySpectralResidual instance.

public static StaticSaliencySpectralResidual Create()

Returns

StaticSaliencySpectralResidual