Skip to content
Snippets Groups Projects
Commit 79a64618 authored by Nicola Vigano's avatar Nicola Vigano
Browse files

6D-Reconstruction: fixed another bug in the volume downscaling

parent 942e4c40
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,15 @@ end ...@@ -23,7 +23,15 @@ end
function vol = upsample_interp_interleaving(vol, scale) function vol = upsample_interp_interleaving(vol, scale)
% Faster than the custom made, bu still way slower than the simple one % Faster than the custom made, bu still way slower than the simple one
vol = interpn(vol, scale-1, 'linear', 0); num_size_4 = size(vol, 4);
if (num_size_4 == 1)
vol = interpn(vol, scale-1, 'linear', 0);
else
for ii4 = num_size_4:-1:1
new_vol(:, :, :, ii4) = interp3(vol(:, :, :, ii4), scale-1, 'linear', 0);
end
vol = new_vol;
end
end end
function vol = upsample_interp(vol, scale) function vol = upsample_interp(vol, scale)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment