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
51bf0dc0
Commit
51bf0dc0
authored
9 years ago
by
Nicola Vigano
Browse files
Options
Downloads
Patches
Plain Diff
ODF-UVW-Solver: performance improvement in projection matrix construction
Signed-off-by:
Nicola Vigano
<
nicola.vigano@esrf.fr
>
parent
67ae78c8
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_Deformation/GtGrainODFuvwSolver.m
+31
-15
31 additions, 15 deletions
zUtil_Deformation/GtGrainODFuvwSolver.m
with
31 additions
and
15 deletions
zUtil_Deformation/GtGrainODFuvwSolver.m
+
31
−
15
View file @
51bf0dc0
...
...
@@ -264,6 +264,34 @@ classdef GtGrainODFuvwSolver < GtGrainODFwSolver
self
.
S
=
cell
(
num_voxels
,
1
);
self
.
St
=
cell
(
num_voxels
,
1
);
% Extracting orientations' W shape functions
oris_w_cs
=
cell
(
num_orients
,
1
);
oris_ws
=
cell
(
num_orients
,
1
);
oris_w_is
=
cell
(
num_orients
,
1
);
for
ii_o
=
1
:
num_orients
sf
=
self
.
shape_functions
{
ii_o
};
w_cs
=
cat
(
1
,
sf
(:)
.
intm
);
oris_w_cs
{
ii_o
}
=
reshape
(
w_cs
,
[],
1
);
ws_sizes
=
[
sf
(:)
.
bbsize
];
bbwims
=
cat
(
1
,
sf
(:)
.
bbwim
);
num_blobs
=
numel
(
sf
);
ws
=
cell
(
num_blobs
,
1
);
w_is
=
cell
(
num_blobs
,
1
);
for
ii_b
=
1
:
num_blobs
ws
{
ii_b
}
=
bbwims
(
ii_b
,
1
):
bbwims
(
ii_b
,
2
);
w_is
{
ii_b
}
=
ii_b
(
ones
(
ws_sizes
(
ii_b
),
1
));
end
oris_ws
{
ii_o
}
=
reshape
([
ws
{:}],
[],
1
);
oris_w_is
{
ii_o
}
=
cat
(
1
,
w_is
{:});
end
% Preparing for computing the UV deviations due to the XYZ
% positions of the real-space voxels
rot_l2s
=
cell
(
num_orients
,
1
);
for
ii_o
=
1
:
num_orients
rot_l2s
{
ii_o
}
=
grid_gr
{
ii_o
}
.
allblobs
.
srot
(:,
:,
ref_sel
);
...
...
@@ -297,21 +325,9 @@ classdef GtGrainODFuvwSolver < GtGrainODFwSolver
uv_tot
=
reshape
(
uv_tot
,
2
,
[],
num_orients
);
for
ii_o
=
1
:
num_orients
sf
=
self
.
shape_functions
{
ii_o
};
w_cs
=
cat
(
1
,
sf
(:)
.
intm
);
w_cs
=
reshape
(
w_cs
,
[],
1
);
num_blobs
=
numel
(
sf
);
ws
=
cell
(
num_blobs
,
1
);
w_is
=
cell
(
num_blobs
,
1
);
for
ii_b
=
1
:
num_blobs
ws
{
ii_b
}
=
sf
(
ii_b
)
.
bbwim
(
1
):
sf
(
ii_b
)
.
bbwim
(
2
);
w_is
{
ii_b
}
=
ii_b
(
ones
(
sf
(
ii_b
)
.
bbsize
(
1
),
1
));
end
ws
=
reshape
([
ws
{:}],
[],
1
);
w_is
=
cat
(
1
,
w_is
{:});
w_cs
=
oris_w_cs
{
ii_o
};
ws
=
oris_ws
{
ii_o
};
w_is
=
oris_w_is
{
ii_o
};
% UV part
uv
=
uv_tot
(:,
:,
ii_o
)
'
;
...
...
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