Created
September 1, 2020 22:25
-
-
Save ehzawad/600197d076600927ec98137302315bc7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fds_saliencyMap = fileDatastore('/Users/ehzawad/Desktop/SM1dataset2/*.png', 'ReadFcn', @importdata); | |
% fds_TD_FixMaps = fileDatastore('/Users/ehzawad/Dropbox/TrainingData/TD_FixMaps/*.png', 'ReadFcn', @importdata); | |
fds_ASD_FixMaps = fileDatastore('/Users/ehzawad/Dropbox/TrainingData/ASD_FixMaps/*.png', 'ReadFcn', @importdata); | |
fullFileNames_smap = fds_saliencyMap.Files; | |
% fullFileNames_truthmap = fds_TD_FixMaps.Files; | |
fullFileNames_ASD_fixmaps = fds_ASD_FixMaps.Files; | |
numFiles_smap = length(fullFileNames_smap); | |
% numFiles_truthmap = length(fullFileNames_truthmap); | |
numFiles_ASD_fixmaps = length(fullFileNames_ASD_fixmaps); | |
% TD_FixMaps_allvalues = 0.0; | |
ASD_FixMaps_allvalues = 0.0; | |
i = 0; | |
for k = 1 : numFiles_smap | |
s = imread(fullFileNames_smap{k}); | |
% g = imread(fullFileNames_truthmap{k}); | |
a = imread(fullFileNames_ASD_fixmaps{k}); | |
% disp(a); | |
% disp(s); | |
i = i + 1; | |
disp(i); | |
[score] = KLdiv(s, a); | |
result = score; | |
result = score; | |
disp(result); | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment