STIR  6.2.0
ThresholdMinToSmallPositiveValueDataProcessor.h
Go to the documentation of this file.
1 //
2 //
3 /*
4  Copyright (C) 2000- 2007, Hammersmith Imanet Ltd
5  This file is part of STIR.
6 
7  SPDX-License-Identifier: Apache-2.0
8 
9  See STIR/LICENSE.txt for details
10 */
21 #ifndef __stir_ThresholdMinToSmallPositiveValueDataProcessor_H__
22 #define __stir_ThresholdMinToSmallPositiveValueDataProcessor_H__
23 
25 #include "stir/DataProcessor.h"
26 
27 START_NAMESPACE_STIR
28 
51 template <typename DataT>
53  : public RegisteredParsingObject<ThresholdMinToSmallPositiveValueDataProcessor<DataT>,
54  DataProcessor<DataT>,
55  DataProcessor<DataT>>
56 {
57 private:
60  DataProcessor<DataT>>
61  base_type;
62 
63 public:
64  static const char* const registered_name;
65 
68 
69 private:
70  int rim_truncation_image;
71 
72  void set_defaults() override;
73  void initialise_keymap() override;
74 
75  Succeeded virtual_set_up(const DataT&) override;
76 
77  void virtual_apply(DataT& out_data, const DataT& in_data) const override;
78  void virtual_apply(DataT& data) const override;
79 };
80 
81 END_NAMESPACE_STIR
82 
83 #endif
Declaration of class stir::DataProcessor.
Base class that defines an interface for classes that do data processing.
Definition: DataProcessor.h:46
Parent class for all leaves in a RegisteredObject hierarchy that do parsing of parameter files...
Definition: RegisteredParsingObject.h:77
A class in the DataProcessor hierarchy for making sure all elements are strictly positive.
Definition: ThresholdMinToSmallPositiveValueDataProcessor.h:52
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition: Succeeded.h:43
Declaration of class stir::RegisteredParsingObject.