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
f94076b4
Commit
f94076b4
authored
9 years ago
by
Nicola Vigano
Browse files
Options
Downloads
Patches
Plain Diff
gtSetupReconstruction: added possibility to only reconstruct a set of grains
Signed-off-by:
Nicola Vigano
<
nicola.vigano@esrf.fr
>
parent
aa5871d8
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
5_reconstruction/gtSetupReconstruction.m
+9
-5
9 additions, 5 deletions
5_reconstruction/gtSetupReconstruction.m
with
9 additions
and
5 deletions
5_reconstruction/gtSetupReconstruction.m
+
9
−
5
View file @
f94076b4
function
gtSetupReconstruction
(
phaseID
)
function
gtSetupReconstruction
(
phaseID
,
first
,
last
)
% GTSETUPRECONSTRUCTION Simple helper function to launch reconstruction and segmentation of
% absorption volume - as well as reconstruction and segmentation of grain volumes
%
...
...
@@ -108,7 +108,8 @@ if ~exist(absorption_mask,'file')
abs
=
load
(
absorption_volume
,
'abs'
);
abs
=
abs
.
abs
;
end
disp
(
'Please create file volume_mask.mat from absorption volume (right click in the volume to select a seed point and then press
''
Segment
''
)'
);
disp
([
'Please create file volume_mask.mat from absorption volume '
...
'(right click in the volume to select a seed point and then press
''
Segment
''
)'
]);
GtGuiThresholdVolume
(
abs
);
end
else
...
...
@@ -123,9 +124,12 @@ else
end
end
first
=
1
;
last
=
sample
.
phases
{
phaseID
}
.
getNumberOfGrains
();
if
(
~
exist
(
'first'
,
'var'
)
||
isempty
(
first
))
first
=
1
;
end
if
(
~
exist
(
'last'
,
'var'
)
||
isempty
(
last
))
last
=
sample
.
phases
{
phaseID
}
.
getNumberOfGrains
();
end
check
=
inputwdefault
(
'Launch reconstruction? [y/n]'
,
'y'
);
rec_on_OAR
=
false
;
...
...
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