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
1bd873d6
Commit
1bd873d6
authored
8 years ago
by
Nicola Vigano
Browse files
Options
Downloads
Patches
Plain Diff
6D-Reconstruction: complain for wrong options!
Signed-off-by:
Nicola Vigano
<
nicola.vigano@esrf.fr
>
parent
44334709
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/Gt6DBlobReconstructor.m
+21
-0
21 additions, 0 deletions
zUtil_Deformation/Gt6DBlobReconstructor.m
with
21 additions
and
0 deletions
zUtil_Deformation/Gt6DBlobReconstructor.m
+
21
−
0
View file @
1bd873d6
...
...
@@ -42,6 +42,27 @@ classdef Gt6DBlobReconstructor < Gt6DVolumeToBlobProjector
end
self
=
self
@
Gt6DVolumeToBlobProjector
(
vols_size
,
proj_size
,
blobs_depths
,
varargin
{:});
possible_tv_norms
=
{
'l12'
,
'l1'
,
'ln'
};
possible_tv_strategies
=
{
'groups'
,
'volume'
};
possible_detector_norms
=
{
'KL'
,
'l2'
};
% Let's complain about wrong options
if
(
~
ismember
(
self
.
tv_norm
,
possible_tv_norms
))
error
([
mfilename
':wrong_argument'
],
...
'TV-norm: %s is not allowed! Use one of [%s] instead'
,
...
self
.
tv_norm
,
sprintf
(
' "%s"'
,
possible_tv_norms
{:}))
end
if
(
~
ismember
(
self
.
tv_strategy
,
possible_tv_strategies
))
error
([
mfilename
':wrong_argument'
],
...
'TV-strategy: %s is not allowed! Use one of [%s] instead'
,
...
self
.
tv_strategy
,
sprintf
(
' "%s"'
,
possible_tv_strategies
{:}))
end
if
(
~
ismember
(
self
.
detector_norm
,
possible_detector_norms
))
error
([
mfilename
':wrong_argument'
],
...
'Detector-norm: %s is not allowed! Use one of [%s] instead'
,
...
self
.
detector_norm
,
sprintf
(
' "%s"'
,
possible_detector_norms
{:}))
end
self
.
statistics
.
add_task
(
'cp_dual_update_detector'
,
'CP Dual variable (detector) update'
);
self
.
statistics
.
add_task_partial
(
'cp_dual_update_detector'
,
'cp_dual_detector_FP'
,
'Forward Projection'
);
self
.
statistics
.
add_task_partial
(
'cp_dual_update_detector'
,
'cp_dual_detector_SB'
,
'Sinograms -> Blobs'
);
...
...
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