Commit 3b58d1cf authored by p.jhagema's avatar p.jhagema
Browse files

removeOutliers: added isOnGPU check

parent 353e246c
......@@ -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');
filteredImage = medfilt2(originalImage);
% difference between original and filtered image
differenceImage = originalImage - filteredImage;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment