Commit c7f3a59f authored by Zheheng Liu's avatar Zheheng Liu
Browse files

add the input type of rod vectors


Signed-off-by: Zheheng Liu's avatarZheheng Liu <zheheng.liu@esrf.fr>
parent 65083bff
......@@ -77,11 +77,21 @@ function [twin_clusters, neighboring_twin_clusters, twin_cands, neighbors] = gtF
'merge_dist_deg', 1, ...
'neighbors', [], ...
'neighbor_strategy', 'dil_vol', ...
'input', 'gr_id', ...
'save', false, ...
'pad', 1);
conf = parse_pv_pairs(conf, varargin);
%% Load the quaternions of grains
Quaternions = gtMathsRod2Quat(sample.phases{phaseID}.R_vector.');
switch conf.input
case 'gr_id'
%% Load the quaternions of grains
Quaternions = gtMathsRod2Quat(sample.phases{phaseID}.R_vector.');
case 'rod'
Quaternions = gtMathsRod2Quat(grain_ids);
grain_ids = 1:size(grain_ids, 2);
conf.save = false;
conf.neighbors = 1:10;
end
%% Find neighboring grains
if (size(conf.neighbors, 1) == tot_grains && size(conf.neighbors, 2) == tot_grains)
......
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