-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDemoIGSTQA.m
32 lines (28 loc) · 1.21 KB
/
DemoIGSTQA.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
% This code is written by: S. Alireza Golestaneh;
% Email: [email protected];
% March 1 2017; for CVPRW 2018; Paper: Synthesized Texture Quality Assessment
% via Multi-scale Spatial and Statistical Texture Attributes of Image and Gradient Magnitude Coefficients
% S. Alireza Golestaneh and Lina Karam
% @InProceedings{Golestaneh_2018_CVPR,
% author = {Alireza Golestaneh, S. and Karam, Lina J.},
% title = {Spatially-Varying Blur Detection Based on Multiscale Fused and Sorted Transform Coefficients of Gradient Magnitudes},
% booktitle = Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops},
% month = {July},
% year = {2018}
% }
% This code was tested on MATLAB2017a
%=====================================================================
%%
clc; clear all;
close all;
path(pathdef);
Ref_Img=imread('bananas.png');
Synth_Img=imread('bananas_Alg1.png');
QualityScore = IGSTQA(Ref_Img,Synth_Img)
% Important Note
% For inputs:
% Ref_Img=imread('bananas.png');
% Synth_Img=imread('bananas_Alg1.png');
% you must get the QualityScore = 17.6479; otherwise, there is something
% different in your setting than the setting that we
% used for our experiment/analysis