Package org.opencv.saliency
Class StaticSaliencySpectralResidual
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.saliency.Saliency
-
- org.opencv.saliency.StaticSaliency
-
- org.opencv.saliency.StaticSaliencySpectralResidual
-
public class StaticSaliencySpectralResidual extends StaticSaliency
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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStaticSaliencySpectralResidual(long addr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StaticSaliencySpectralResidual__fromPtr__(long addr)booleancomputeSaliency(Mat image, Mat saliencyMap)Compute the saliency \param image The image.static StaticSaliencySpectralResidualcreate()protected voidfinalize()intgetImageHeight()intgetImageWidth()voidsetImageHeight(int val)voidsetImageWidth(int val)-
Methods inherited from class org.opencv.saliency.StaticSaliency
computeBinaryMap
-
Methods inherited from class org.opencv.core.Algorithm
clear, empty, getDefaultName, getNativeObjAddr, save
-
-
-
-
Method Detail
-
__fromPtr__
public static StaticSaliencySpectralResidual __fromPtr__(long addr)
-
create
public static StaticSaliencySpectralResidual create()
-
computeSaliency
public boolean computeSaliency(Mat image, Mat saliencyMap)
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)
-
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalizein classStaticSaliency- Throws:
java.lang.Throwable
-
-