Skip to content
Snippets Groups Projects
Commit 1bd873d6 authored by Nicola Vigano's avatar Nicola Vigano
Browse files

6D-Reconstruction: complain for wrong options!

parent 44334709
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment