function psnrtab = quality_psnrhvsm( repref, rep, suffixe, deb, fin )
%UNTITLED3 Summary of this function goes here
%   Detailed explanation goes here

psnrtab=zeros(fin-deb+1,1);
sfftab=zeros(fin-deb+1,1);
for i=deb:fin
    if i<10
        avant=strcat('I0', int2str(i));
    else
        avant=strcat('I', int2str(i));
    end
       
    reffile=strcat(repref,'/',avant, '.ppm');
    candfile=strcat(rep,'/',avant, suffixe, '.ppm');
    
    psnrtab(i) = psnrhvsm(imread(reffile), imread(candfile));
    
end

end

