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
3b58d1cf
Commit
3b58d1cf
authored
Sep 17, 2019
by
p.jhagema
Browse files
removeOutliers: added isOnGPU check
parent
353e246c
Changes
1
Hide whitespace changes
Inline
Side-by-side
functions/imageProcessing/artefactRemoval/removeOutliers.m
View file @
3b58d1cf
...
...
@@ -73,8 +73,12 @@ originalImage(isnan(originalImage)) = inf;
% filtered image
neighbourhood
=
[
settings
.
neighborhood
settings
.
neighborhood
];
filteredImage
=
medfilt2
(
originalImage
,
neighbourhood
,
'symmetric'
);
if
~
isOnGPU
(
originalImage
)
filteredImage
=
medfilt2
(
originalImage
,
neighbourhood
,
'symmetric'
);
else
filteredImage
=
medfilt2
(
originalImage
);
end
% difference between original and filtered image
differenceImage
=
originalImage
-
filteredImage
;
...
...
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