Image sharpness metric

倖福魔咒の 提交于 2019-12-03 17:17:16

问题


Is there some robust metric of image sharpness or bluriness? I have various set of images with different parameters of saturation and captured from different optical systems, and i heed to show user something like "quality" of focusing. For getting most focused image i use metric getted with Sobel-Tenengrad operator(summ of high-contrast pixels), but the problem is that for different objects are quite different range of metric(depends on unknown parameters of image intensity, optical system ) - needed some metric where possible to say that image has bad focus whithout comparing with reference image, like this is "bad" or "good" focused image.


回答1:


You can calculate the accutance of the image by calculating the mean of the Gradient Filter.

Reference this StackOverflow answer to a similar question.




回答2:


You need a no-reference sharpness metric, such as:

  • Cumulative probability of blur detection (CPBD) https://ivulab.asu.edu/software/quality/cpbd
  • S3 http://vision.okstate.edu/s3/
  • Just noticeable blur (JNB) https://ivulab.asu.edu/software/quality/jnbm
  • LPC-SI https://ece.uwaterloo.ca/~z70wang/publications/TIP_LPCSharpness.pdf



回答3:


Autofocus is an interesting problem on its own, and so evaluating sharpness across arbitrary images is another level of complexity.

On sharpness evaluation, I suggest this paper from Cornell. Their conclusion was that the variance metric provided the best evaluation of a given image. And it doesn't hurt that it's really easy to calculate!

For creating a consistent metric across different images, you'll need a way to normalize. The metric might be in units of variance per pixel. You could take advantage of the fact that lack of focus provides an upper bound on variance, and so look for clustering at a maximal rate of local variance.




回答4:


Here's a short paper describing a method for detecting blurredness using a Haar Wavelet Transform

The other answers to this PAQ may also be helpful.



来源:https://stackoverflow.com/questions/17887883/image-sharpness-metric

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!