Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
irp
HoloTomoToolbox
Commits
23eff510
Commit
23eff510
authored
Jul 01, 2019
by
Simon Maretzke
Browse files
Fix color-axis handling for arrays of type logical
parent
8be458e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
functions/plotting/showImage.m
View file @
23eff510
...
...
@@ -50,9 +50,15 @@ end
image
=
squeeze
(
image
);
h
=
imagesc
(
image
);
axis
equal
tight
off
;
colorbar
;
image
=
medfilt2
(
image
,
'symmetric'
);
minVal
=
min
(
image
(:));
maxVal
=
max
(
image
(:));
caxis
([
minVal
maxVal
]);
% determine reasonable range of color axis
if
islogical
(
image
)
caxis
([
0
,
1
]);
else
image
=
medfilt2
(
image
,
'symmetric'
);
minVal
=
min
(
image
(:));
maxVal
=
max
(
image
(:));
caxis
([
minVal
maxVal
]);
end
end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment