Info

此问题已关闭。 请重新打开它进行编辑或回答。

how to get the accuracy for each type of distortion and accuracy for all ?

1 次查看(过去 30 天)
此 个问题 已被 William Rose 标记
what to change in this coding to get the accuracy for each type of distortion and accuracy value for all? can see the coding attach. thank you
load('dmos.mat');
FYPdatabase=cell(numel(dmos),4);
FYPdatabase(:,2)=num2cell(dmos);
feat=zeros(982,40);
for k=1:982
A=FYPdatabase{k,1};
featim=gmlog(A);
FYPdatabase{k,5}=featim;
feat(k,:)=featim
end
addpath('C:\Users\User\Desktop\LIVE database\databaserelease2\jp2k');
for i=1:227
A=imread(sprintf('img%d.bmp',i));
A1=rgb2gray(A);
A2=double(A1);
FYPdatabase{i,1}=A2;
FYPdatabase{i,3}=1;
end
addpath('C:\Users\User\Desktop\LIVE database\databaserelease2\jpeg');
for i=1:233
A=imread(sprintf('img%d.bmp',i));
A1=rgb2gray(A);
A2=double(A1);
FYPdatabase{227+i,1}=A2;
FYPdatabase{227+i,3}=2;
end
addpath('C:\Users\User\Desktop\LIVE database\databaserelease2\wn');
for i=1:174
A=imread(sprintf('img%d.bmp',i));
A1=rgb2gray(A);
A2=double(A1);
FYPdatabase{460+i,1}=A2;
FYPdatabase{460+i,3}=3;
end
addpath('C:\Users\User\Desktop\LIVE database\databaserelease2\gblur');
for i=1:174
A=imread(sprintf('img%d.bmp',i));
A1=rgb2gray(A);
A2=double(A1);
FYPdatabase{634+i,1}=A2;
FYPdatabase{634+i,3}=4;
end
addpath('C:\Users\User\Desktop\LIVE database\databaserelease2\fastfading');
for i=1:174
A=imread(sprintf('img%d.bmp',i));
A1=rgb2gray(A);
A2=double(A1);
FYPdatabase{808+i,1}=A2;
FYPdatabase{808+i,3}=5;
end
this is the coding for FYPdatabase (2).mat. i cannot attach the mat file because the size is bigger than 5MB

回答(0 个)

此问题已关闭。

产品


版本

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by