Skip to content

Commit

Permalink
small wording change
Browse files Browse the repository at this point in the history
  • Loading branch information
cvzoya committed Sep 24, 2014
1 parent 157b474 commit b29df85
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions code_forOptimization/adjustSalMaps.m
Expand Up @@ -25,18 +25,16 @@ function adjustSalMaps(salDir,resDir,centWeight,blurSigma,targetHist,showOutput)
mkdir(resDir)
end

allfiles = dir(salDir);
allfiles = dir(fullfile(salDir,'*.jpg'));

if showOutput, figure; end

for i = 1:length(allfiles)
if ~isdir(allfiles(i).name)

fprintf('On %s\n',allfiles(i).name)
mapOrig = im2double(imread(fullfile(salDir,allfiles(i).name)));
cent = imresize(center, size(mapOrig));
map = processMap(mapOrig,cent,targetHist,blurSigma,centWeight,showOutput);
imwrite(map,fullfile(resDir,allfiles(i).name));
fprintf('On %s\n',allfiles(i).name)
mapOrig = im2double(imread(fullfile(salDir,allfiles(i).name)));
cent = imresize(center, size(mapOrig));
map = processMap(mapOrig,cent,targetHist,blurSigma,centWeight,showOutput);
imwrite(map,fullfile(resDir,allfiles(i).name));

end
end

0 comments on commit b29df85

Please sign in to comment.