@Reference(type=Inproceedings, author={"Luo, Yiwen","Tang, Xiaoou"}, title="Photo and Video Quality Evaluation: Focusing on the Subject", year="2008", booktitle="Proceedings of the 10th European Conference on Computer Vision: Part III", pages={"386","","399"}, url="http://dx.doi.org/10.1007/978-3-540-88690-7_29", publisher="Springer-Verlag", series="ECCV \'08", customData={"isbn","978-3-540-88689-1","location","Marseille, France","numpages","14","doi","10.1007/978-3-540-88690-7_29","acmid","1478204","address","Berlin, Heidelberg"}) public class DepthOfFieldEstimator extends Object implements SaliencyMapGenerator<FImage>
Modifier and Type | Field and Description |
---|---|
protected int |
kernelSizeStep |
protected int |
maxKernelSize |
protected int |
nbins |
protected int |
windowSize |
protected float[][] |
xHistograms |
protected float[][] |
yHistograms |
Constructor and Description |
---|
DepthOfFieldEstimator()
Construct with the default values (max kernel size = 50, step size = 1,
41 bins, window size of 3).
|
DepthOfFieldEstimator(int maxKernelSize,
int kernelSizeStep,
int nbins,
int windowSize)
Construct with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
analyseImage(FImage image)
Analyse an image.
|
protected void |
clearHistograms() |
FImage |
getSaliencyMap()
Get the generated saliency map
|
protected int maxKernelSize
protected int kernelSizeStep
protected int nbins
protected int windowSize
protected float[][] xHistograms
protected float[][] yHistograms
public DepthOfFieldEstimator(int maxKernelSize, int kernelSizeStep, int nbins, int windowSize)
maxKernelSize
- Maximum kernel size.kernelSizeStep
- Kernel step size.nbins
- Number of bins.windowSize
- window size.public DepthOfFieldEstimator()
protected void clearHistograms()
public void analyseImage(FImage image)
ImageAnalyser
analyseImage
in interface ImageAnalyser<FImage>
image
- The image to process in place.public FImage getSaliencyMap()
SaliencyMapGenerator
getSaliencyMap
in interface SaliencyMapGenerator<FImage>