无参考图像质量评价算法是一种可以度量无原始图像的质量的算法。其中NIQE算法是其中一种比较流行的算法,它建立了一个基于无参考的图像质量评价模型,可以对任何一张图像进行质量评价。
在MATLAB中,我们可以使用NIQE算法来评估图像质量,下面是相应的源代码:
function quality = niqe(I)
%NIQE Compute the Natural Image Quality Evaluator (NIQE) quality score.
% quality = NIQE(I) computes the NIQE quality score for the input image I.
%
% This implementation is based on the algorithm described in:
%
% M. A. Saad, A. C. Bovik, and C. Charrier, "Blind image quality
% assessment: A natural scene statistics approach in the DCT domain,"
% IEEE Transactions on Image Processing, vol. 21, no. 8, pp.
% 3339-3352, Aug. 2012.
%
% http://live.ece.utexas.edu/research/quality/niqe_release.zip
%
% which is