%=====================================================================
% No-Reference Image Quality Measurement
% Written by Meisam Rakhshnfar, Vidpro Lab
% (http://users.encs.concordia.ca/~amer/SDQI/)
% Revised: February 2016
%
% Copyright Notice:
%  Copyright (c) 2014-2016 Concordia University
%  All Rights Reserved.
%=====================================================================

clc
clear
close all

A = imread('peppers.png');

[QI,ET] = SDQI(A);


disp(['QI of original image = ' num2str(QI,'%2.2f')])
disp(['Elappsed time = ' num2str(ET,'%2.2f')])

disp('----------------------------------------')

A = imread('peppers.png');
A = double(A) + 10*randn(size(A));

[QI,ET] = SDQI(A);


disp(['QI of noisy image = ' num2str(QI,'%2.2f')])
disp(['Elappsed time = ' num2str(ET,'%2.2f')])
