Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion code_forMetrics/AUC_Judd.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
% in the small values!
if jitter
% jitter the saliency map slightly to distrupt ties of the same numbers
saliencyMap = saliencyMap+rand(size(saliencyMap))/10000000;
saliencyMap = double(saliencyMap)+rand(size(saliencyMap))/10000000;
end

% normalize saliency map
Expand Down
4 changes: 2 additions & 2 deletions code_forMetrics/EMD.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
if nargin < 4, downsize = 32; end

% reduce image size for efficiency of calculations
im1 = imresize(fixationMap, 1/downsize);
im2 = imresize(saliencyMap, size(im1));
im1 = double(imresize(fixationMap, 1/downsize));
im2 = double(imresize(saliencyMap, size(im1)));
[R,C]= size(im1);

% Making sure mass sums to 1.
Expand Down