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
ImageWidth
Gets or sets the resize width used during internal computation.
public int ImageWidth { get; set; }
Property Value
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
saliencyMapInputArrayThe input saliency map (CV_32FC1).
binaryMapOutputArrayThe 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
imageInputArrayThe input image.
saliencyMapOutputArrayThe computed saliency map (CV_32FC1).
Returns
- bool
true if the saliency map was computed successfully.
Create()
Creates a StaticSaliencySpectralResidual instance.
public static StaticSaliencySpectralResidual Create()