have a distorted (blurred image) and I perform several deconvolution algorithms on it to sharpen it (Richardson lucy, regularized inverse filter, tikhonov miller). And i want to measure each performance by calculating the MSE (mean square error). However I don’t have a reference or an ideal image where I can compare my result. is there a way to measure quality of sharpening when a reference image is not available ?
To calculate MSE and other objective measures you obviously need a reference image. However, in the absence of a reference image, you can consider using some alternative approaches to assess the quality of image sharpening. Here are a few possibilities:
Edge Preservation: Evaluate how well the sharpening algorithms preserve the edges in the image. Blurred images tend to have less defined edges, so a good sharpening algorithm should enhance edge details without introducing excessive artifacts or noise. You can use edge detection algorithms (e.g., Canny edge detector) on both the original and sharpened images and compare the results.
Structural Similarity Index (SSIM): SSIM is a widely used metric for measuring the similarity between two images. It takes into account the luminance, contrast, and structural information. Although SSIM still requires a reference image, you can compare the SSIM values obtained from different deconvolution algorithms to determine which one produces results that are most similar to each other.
Peak Signal-to-Noise Ratio (PSNR): While PSNR traditionally requires a reference image, you can calculate it by using the original blurred image as a reference. PSNR measures the ratio between the maximum possible power of a signal and the power of the noise. Although it's not a perfect measure for assessing image quality, it can provide some indication of the amount of noise introduced during the sharpening process.
Remember that these alternative approaches have limitations and may not provide the same level of accuracy as comparing against a ground truth image. However, they can still offer some insights into the performance of different deconvolution algorithms.
However, what I would personally do in this situation is to use a high-pass filter to measure the amount of high-frequency content in the images.
Here's a possible approach:
Apply a high-pass filter to both the original blurred image and the sharpened image. A high-pass filter attenuates the low-frequency components of an image, allowing the high-frequency details to pass through.
Calculate a metric that quantifies the amount of high-frequency content in the filtered images. One common and useful metric is the energy or variance of the high-frequency components. This can be computed by squaring the pixel values of the high-pass filtered images and calculating the mean or sum of the squared values.
Compare the metric values between the original blurred image and the sharpened image. A successful sharpening algorithm should enhance the high-frequency content, resulting in a higher metric value for the sharpened image compared to the original blurred image.
While measuring the high-frequency content can provide valuable information about the effectiveness of image sharpening, keep in mind that even this is not a comprehensive measure of overall image quality. Other factors, such as noise, artifacts, and preservation of low-frequency details, also contribute to the perceived quality of the image. Therefore, it is beneficial to combine this metric with your own visual inspection (if possible) and other metrics mentioned earlier, to obtain a more comprehensive evaluation of the sharpening algorithms. You can give weights to each of these metrics and based on that you can form your overall evaluation!