Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DCT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
graintracking
DCT
Commits
34c0fba1
Commit
34c0fba1
authored
9 years ago
by
Nicola Vigano
Browse files
Options
Downloads
Patches
Plain Diff
Twins: Fixed orientation prediction
Signed-off-by:
Nicola Vigano
<
nicola.vigano@esrf.fr
>
parent
57f4400b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
zUtil_Twins/gtTwinOrientations.m
+3
-3
3 additions, 3 deletions
zUtil_Twins/gtTwinOrientations.m
with
3 additions
and
3 deletions
zUtil_Twins/gtTwinOrientations.m
+
3
−
3
View file @
34c0fba1
function
[
g_twins
]
=
gtTwinOrientations
(
R_vector
,
twin_angle
,
twin_axis
,
spacegroup
,
lp
,
plot_variants
)
function
g_twins
=
gtTwinOrientations
(
R_vector
,
twin_angle
,
twin_axis
,
spacegroup
,
lp
,
plot_variants
)
% GTTWINORIENTATIONS
%
[
g_twins
]
= gtTwinOrientations(R_vector, twin_angle, twin_axis, spacegroup, lp, [plot_variants])
% g_twins = gtTwinOrientations(R_vector, twin_angle, twin_axis, spacegroup, lp, [plot_variants])
% ------------------------------------------------------------------------------------------------
% By passing in the parent R_vector, return the g (sample to crystal transformation) plus
% all the twin variants
...
...
@@ -57,7 +57,7 @@ function [g_twins] = gtTwinOrientations(R_vector, twin_angle, twin_axis, spacegr
for
ii
=
num_axes
:
-
1
:
1
rotcomp
=
gtMathsRotationMatrixComp
(
twin_axes
(
ii
,
:)
', '
col
'
);
cry2twins
(:,
:,
ii
)
=
gtMathsRotationTensor
(
twin_angle
,
rotcomp
);
gs
(:,
:,
ii
)
=
sam2cry
*
cry2twins
(:,
:,
ii
);
gs
(:,
:,
ii
)
=
cry2twins
(:,
:,
ii
)
*
sam2cry
;
end
orimats
=
gtMathsAngleAxis2OriMat
(
twin_angle
(
1
,
ones
(
num_axes
,
1
)),
twin_axes
'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment