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
6314361a
Commit
6314361a
authored
9 years ago
by
Nicola Vigano
Browse files
Options
Downloads
Patches
Plain Diff
ODF-solvers: added ospace oversampling
Signed-off-by:
Nicola Vigano
<
nicola.vigano@esrf.fr
>
parent
510f7402
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
zUtil_Deformation/GtGrainODFwSolver.m
+8
-18
8 additions, 18 deletions
zUtil_Deformation/GtGrainODFwSolver.m
with
8 additions
and
18 deletions
zUtil_Deformation/GtGrainODFwSolver.m
+
8
−
18
View file @
6314361a
...
...
@@ -17,7 +17,7 @@ classdef GtGrainODFwSolver < handle
St_ws
;
tau_ws
;
num_iter
=
0
;
num_iter
=
5
0
;
verbose
=
false
;
end
...
...
@@ -42,11 +42,13 @@ classdef GtGrainODFwSolver < handle
conf
=
struct
(
...
'algorithm'
,
'sirt'
,
...
'lambda'
,
1e-2
,
...
'ospace_oversize'
,
1.1
,
...
'ospace_oversize'
,
1
,
...
'ospace_oversampling'
,
0
,
...
'det_index'
,
1
);
conf
=
parse_pv_pairs
(
conf
,
varargin
);
self
.
build_orientation_sampling
(
ref_gr
,
conf
.
ospace_oversize
,
conf
.
det_index
);
self
.
build_orientation_sampling
(
ref_gr
,
conf
.
det_index
,
...
conf
.
ospace_oversize
,
conf
.
ospace_oversampling
);
bls
=
self
.
sampler
.
bl
(
self
.
sampler
.
selected
);
self
.
build_sinogram
();
...
...
@@ -68,10 +70,10 @@ classdef GtGrainODFwSolver < handle
end
methods
(
Access
=
public
)
% Low Level API
function
build_orientation_sampling
(
self
,
ref_gr
,
oversize
,
det_index
)
function
build_orientation_sampling
(
self
,
ref_gr
,
det_index
,
oversize
,
oversampling
)
self
.
sampler
=
GtOrientationSampling
(
self
.
parameters
,
ref_gr
,
...
'verbose'
,
self
.
verbose
,
'detector_index'
,
det_index
);
self
.
sampler
.
make_grid_estim_ODF_resoluion
(
'cubic'
,
0
,
oversize
);
'verbose'
,
self
.
verbose
&&
false
,
'detector_index'
,
det_index
);
self
.
sampler
.
make_grid_estim_ODF_resoluion
(
'cubic'
,
-
oversampling
,
oversize
);
self
.
size_volume
=
size
(
self
.
sampler
.
lattice
.
gr
);
end
...
...
@@ -202,9 +204,6 @@ classdef GtGrainODFwSolver < handle
function
solve_sirt
(
self
)
c
=
tic
();
if
(
~
self
.
num_iter
)
self
.
num_iter
=
100
;
end
residuals
=
zeros
(
self
.
num_iter
,
1
);
x0
=
self
.
bw
(
self
.
bp
(
self
.
fw
(
self
.
sino
)));
...
...
@@ -241,9 +240,6 @@ classdef GtGrainODFwSolver < handle
function
solve_cplsnn
(
self
)
c
=
tic
();
if
(
~
self
.
num_iter
)
self
.
num_iter
=
50
;
end
residuals
=
zeros
(
self
.
num_iter
,
1
);
p
=
gtMathsGetSameSizeZeros
(
self
.
S__ws
);
...
...
@@ -278,9 +274,6 @@ classdef GtGrainODFwSolver < handle
function
solve_cplsl1nn
(
self
,
lambda
)
c
=
tic
();
if
(
~
self
.
num_iter
)
self
.
num_iter
=
50
;
end
residuals
=
zeros
(
self
.
num_iter
,
1
);
p
=
gtMathsGetSameSizeZeros
(
self
.
S__ws
);
...
...
@@ -324,9 +317,6 @@ classdef GtGrainODFwSolver < handle
rescaled_sino
=
self
.
sino
.
/
norm
(
self
.
sino
(:))
.*
self
.
get_num_ws
();
c
=
tic
();
if
(
~
self
.
num_iter
)
self
.
num_iter
=
50
;
end
residuals
=
zeros
(
self
.
num_iter
,
1
);
p
=
gtMathsGetSameSizeZeros
(
self
.
S__ws
);
...
...
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