@Reference(type=Inproceedings,author={"Ke, Yan","Tang, Xiaoou","Jing, Feng"},title="The Design of High-Level Features for Photo Quality Assessment",year="2006",booktitle="Proceedings of the 2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition - Volume 1",pages={"419","","426"},url="http://dx.doi.org/10.1109/CVPR.2006.303",publisher="IEEE Computer Society",series="CVPR \'06",customData={"isbn","0-7695-2597-0","numpages","8","doi","10.1109/CVPR.2006.303","acmid","1153495","address","Washington, DC, USA"}) @Reference(type=Inproceedings,author={"Che-Hua Yeh","Yuan-Chen Ho","Brian A. Barsky","Ming Ouhyoung"},title="Personalized Photograph Ranking and Selection System",year="2010",booktitle="Proceedings of ACM Multimedia",pages={"211","220"},month="October",customData={"location","Florence, Italy"}) public class SharpPixelProportion extends Object implements ImageAnalyser<FImage>, FeatureVectorProvider<DoubleFV>
Basically, this technique estimates the proportion of blurred pixels by thresholding the power-spectrum (magnitude) of the FFT of the image. Results are in the range 0-1. A higher number implies a sharper image.
Constructor and Description |
---|
SharpPixelProportion()
Construct with a default threshold on Fourier magnitude of 2.0.
|
SharpPixelProportion(float threshold)
Construct with the given threshold on Fourier magnitude.
|
Modifier and Type | Method and Description |
---|---|
void |
analyseImage(FImage image)
Analyse an image.
|
double |
getBlurredPixelProportion() |
DoubleFV |
getFeatureVector()
Get the FeatureVector associated with this object.
|
public SharpPixelProportion()
public SharpPixelProportion(float threshold)
threshold
- the thresholdpublic DoubleFV getFeatureVector()
FeatureVectorProvider
getFeatureVector
in interface FeatureVectorProvider<DoubleFV>
public void analyseImage(FImage image)
ImageAnalyser
analyseImage
in interface ImageAnalyser<FImage>
image
- The image to process in place.public double getBlurredPixelProportion()