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

6D-Reconstruction/shape-functions/twins: fixes

parent f9b5e819
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ classdef Gt6DReconstructionAlgorithmFactory < handle
for ii_o_reg = 1:num_regions
gr = sampler(ii_o_reg).get_reference_grain();
fprintf('%d) Grainid %d:\n', ii_o_reg, gr.id)
shape_funcs = self.get_shape_functions(sampler);
shape_funcs = self.get_shape_functions(sampler(ii_o_reg));
algo_params(ii_o_reg) = self.get_algorithm_params( ...
sampler(ii_o_reg), num_interp, shape_funcs); %#ok<AGROW>
fprintf('\n')
......
......@@ -84,7 +84,9 @@ function shape_funcs = gtDefShapeFunctionsFwdProj(sampler, varargin)
gv.used_ind = find(gv.pow > 0);
sel_bls = find(sampler.selected);
% Adapting to the recent change in GtOrientationSampling, where we only
% compute the scattering info for the selected reflections
sel_bls = 1:numel(find(sampler.selected));
% Only one lattice allowed for the moment!
num_ors = numel(sampler.lattice(1).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