Skip to content

Commit

Permalink
Fixed small things.
Browse files Browse the repository at this point in the history
  • Loading branch information
jflalonde committed May 18, 2014
1 parent 2e9e480 commit 7fbc475
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mycode/EnvironmentMap.m
Expand Up @@ -134,7 +134,9 @@
imreadFun = @(varargin)[];
end

warnState = warning('off', 'hdr_imread:autoRotate');
e.data = imreadFun(filename);
warning(warnState);

% check for accompanying metadata
[e, exists] = e.readMetadataFile(filename);
Expand Down Expand Up @@ -423,7 +425,7 @@ function imwrite(e, varargin)
% adapt the exposure value
if ~isempty(m.exposureValue) && isscalar(f)
m.exposureValue = m.exposureValue - log2(f);
elseif isscalar(f)
elseif ~isscalar(f)
warning('EnvironmentMap:times', ...
'Not a scalar, so keeping the EV');
end
Expand Down

0 comments on commit 7fbc475

Please sign in to comment.