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

GtOrientationSamplig-Supersampling: finally start using directional oversampling factors

parent b8a7a1e6
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ classdef GtOrientationSampling < handle ...@@ -3,6 +3,7 @@ classdef GtOrientationSampling < handle
lattice = struct('gr', {}); lattice = struct('gr', {});
lattice_ss = {}; lattice_ss = {};
ss_factor = [1 1 1];
stats; stats;
gvdm; gvdm;
...@@ -244,9 +245,12 @@ classdef GtOrientationSampling < handle ...@@ -244,9 +245,12 @@ classdef GtOrientationSampling < handle
end end
function make_supersampling_simple_grid(self, directions, factor) function make_supersampling_simple_grid(self, directions, factor)
self.ss_factor = [1 1 1];
self.ss_factor(directions) = factor;
orient_voxel_size = self.stats.sampling.gaps; orient_voxel_size = self.stats.sampling.gaps;
half_voxel_size = orient_voxel_size ./ 2; half_voxel_size = orient_voxel_size ./ 2;
steps = orient_voxel_size ./ factor; steps = orient_voxel_size ./ self.ss_factor;
half_steps = steps ./ 2; half_steps = steps ./ 2;
for ii_o = 1:numel(self.lattice) for ii_o = 1:numel(self.lattice)
size_or = size(self.lattice(ii_o).gr); size_or = size(self.lattice(ii_o).gr);
......
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