Evaluation and analysis of image sharpness

Source: Internet
Author: User

In the quality evaluation without reference image, the sharpness of image is an important index to measure the quality of image, it can be better compared with people's subjective feeling, and the image's sharpness is not high to show the blurred image. Aiming at the application of non-reference image quality evaluation, this paper discusses and analyzes several typical and representative definition algorithms, and provides the basis for selecting the definition algorithm in practical application.
(1) Brenner gradient functionThe Brenner gradient function is the simplest gradient evaluation function, which simply calculates the square of the gray difference of the adjacent two pixels, which is defined as follows: F (x, y) represents the gray value of the image f corresponding to the pixel point (x, y), and D (f) is the result of the image Sharpness calculation (hereinafter).
(2) Tenengrad gradient functionThe Tenengrad gradient function uses the Sobel operator to extract the horizontal and vertical gradient values respectively, and the image definition of the base and the Tenengrad gradient function is defined as follows: G (x, y) in the form of the following: T is a given edge detection threshold, and the GX and Gy are pixel points (x, y) Sobel horizontal and vertical edge detection operators, it is recommended to use the following Sobel operator template to detect edges:(3) Laplacian gradient function
      The image star definition based on the Laplacian gradient function is defined as follows: where g (x, y) is the convolution of the Laplacian operator at the pixel point (x, y).
(4) SMD (grayscale variance) functionWhen fully focused, the image is clearest, and the high frequency component in the image is the most, so the gray-scale change can be used as the basis of the focus evaluation, the formula of the gray variance method is as follows:
(5) SMD2 (gray variance product) functionGray-scale difference evaluation function has good computational performance, but its disadvantage is also obvious, that is, the sensitivity is not high near the focal point, that is, the function is too flat near the extreme points, which leads to the difficulty of improving the focusing precision. In the article "a fast and high sensitivity focus evaluation function", a new evaluation function is proposed, called the gray variance product method, that is, each pixel domain two gray scale difference multiplied by pixel, the function is defined as follows:(6) Variance functionBecause the clear-focused image has a larger gray-scale difference than the blurred image, the variance function can be used as the evaluation function: The average gray value of the whole image, the function is more sensitive to noise, the more pure the picture, the smaller the value of the letter.

(7) Energy gradient functionThe energy gradient function is more suitable for real-time evaluation of image sharpness, the function is defined as follows:(8) Vollath functionThe Vollath function is defined as follows: For the average gray value of the entire image, M and n are the image width and height respectively.
(9) Entropy functionThe entropy function based on statistical features is an important index to measure the richness of image information, and it is known that the information of an image f is measured by the entropy D (f) of the Image: Pi is the probability that the pixels in the image have a grayscale value of I, and L is the total number of gray levels (usually 256). According to Shannon information theory, the maximum entropy is the most information. Applying this principle to the focus process, the larger the D (f), the clearer the image. Entropy function sensitivity is not high, depending on the content of the image is easy to appear contrary to the real situation results.
(Ten) EAV point sharpness algorithm functionGuo, Zhang Xia and so on, an algorithm based on edge sharpness is proposed to evaluate the sharpness of images. The gray-scale change of the edge direction of the statistical image is evaluated. The calculation formula is as follows:
Where: Df/dx is the gray change rate of the marginal normal direction, F (b)-F (a) is the overall gray-level change in the orientation. The algorithm only for the specific edge of the image statistics, can represent the clarity of the whole image is still questionable, in addition to manually select the Edge area before the calculation, inconvenient to achieve the automation of program operation, because Wang Hongnan, etc. in the study of image clarity evaluation method, the above algorithm was improved, the following improvements: a) will be targeted at the edge of the ladder         The degree calculation is changed to the calculation of pixel domain gradient, so that the algorithm can evaluate the whole image and automate the algorithm.         b) A distance weighting of gray changes in the square pixel 8 area, with a weight of 1 in the horizontal and vertical directions, and a weight of 45 and 135 degrees. c) The calculation results are normalized by the size of the image, so that the image can be compared. After the improvement of the above three steps, the point sharpness algorithm is:
Where: M and n are the number of rows and columns of the image. (one) Reblur two times Blur
If an image is blurred, the high-frequency component does not change much when it is blurred, but if the original is clear, the high-frequency component changes very much. Therefore, the image can be treated by a Gaussian blur, the degraded image is obtained, and then the change of the neighboring pixel value of the original image and degraded image is compared, and the sharpness value is determined according to the size of the change, the smaller the result is, the clearer the image is and the more blurred the inverse. This idea can be called based on two-time fuzzy definition algorithm, its algorithm simplifies the flow as follows:

(NRSS) The similarity of gradient structure
Wang ET the use of Human vision system (HVS) is very suitable to extract the characteristics of the structure of the target, the concept of image structure similarity (SSIM) is proposed, so long as it can calculate the change of the target structure information, can get the perceptual image distortion value. Yang Chunling and so on based on this idea, the method is introduced into the evaluation of the definition of the full reference image, the definition of the image can be expressed using the similarity between the target image and the reference image, and the structure similarity between the images contains the following three parts: while C1, C2 and C3 are constants to avoid the denominator of 0. The structure similarity of an image is calculated from the following formula: For simplicity, you can make the Alpha=beta=gamma=1
Shi and so on further improved the method of Yang Chunling and so on, according to the related thought of structure similarity and the related characteristics of the system of the inhabited vision, design the evaluation Index (NRSS) without reference image definition, the calculation method is as follows:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.