Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
graintracking
DCT
Commits
c7f3a59f
Commit
c7f3a59f
authored
Jun 24, 2022
by
Zheheng Liu
Browse files
add the input type of rod vectors
Signed-off-by:
Zheheng Liu
<
zheheng.liu@esrf.fr
>
parent
65083bff
Changes
1
Hide whitespace changes
Inline
Side-by-side
zUtil_Twins/gtFindAnnealingTwinsAmongNeighboringGrains_v2.m
View file @
c7f3a59f
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment