Class StaticSaliencySpectralResidual
java.lang.Object
org.opencv.core.Algorithm
org.opencv.saliency.Saliency
org.opencv.saliency.StaticSaliency
org.opencv.saliency.StaticSaliencySpectralResidual
the Spectral Residual approach from CITE: SR
Starting from the principle of natural image statistics, this method simulate the behavior of
pre-attentive visual search. The algorithm analyze the log spectrum of each image and obtain the
spectral residual. Then transform the spectral residual to spatial domain to obtain the saliency
map, which suggests the positions of proto-objects.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription__fromPtr__(long addr) booleancomputeSaliency(Mat image, Mat saliencyMap) Compute the saliency \param image The image.create()intintvoidsetImageHeight(int val) voidsetImageWidth(int val) Methods inherited from class StaticSaliency
computeBinaryMapMethods inherited from class Algorithm
clear, empty, getDefaultName, getNativeObjAddr, save
-
Constructor Details
-
StaticSaliencySpectralResidual
protected StaticSaliencySpectralResidual(long addr)
-
-
Method Details
-
__fromPtr__
-
create
-
computeSaliency
Description copied from class:SaliencyCompute the saliency \param image The image. \param saliencyMap The computed saliency map. \return true if the saliency map is computed, false otherwise- Overrides:
computeSaliencyin classSaliency- Parameters:
image- automatically generatedsaliencyMap- automatically generated- Returns:
- automatically generated
-
getImageWidth
public int getImageWidth() -
setImageWidth
public void setImageWidth(int val) -
getImageHeight
public int getImageHeight() -
setImageHeight
public void setImageHeight(int val)
-