ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkBoellaardScatterCorrectionImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright RTK Consortium
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * https://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18
19#ifndef rtkBoellaardScatterCorrectionImageFilter_h
20#define rtkBoellaardScatterCorrectionImageFilter_h
21
22#include "rtkConfiguration.h"
24
25namespace rtk
26{
27
46template <class TInputImage, class TOutputImage = TInputImage>
48 : public itk::InPlaceImageFilter<TInputImage, TOutputImage>
49{
50public:
51 ITK_DISALLOW_COPY_AND_MOVE(BoellaardScatterCorrectionImageFilter);
52
58
60 using InputImageType = TInputImage;
61 using OutputImageType = TOutputImage;
62 using OutputImageRegionType = typename OutputImageType::RegionType;
63
65 itkNewMacro(Self);
66
68 itkOverrideGetNameOfClassMacro(BoellaardScatterCorrectionImageFilter);
69
72 itkGetMacro(AirThreshold, double);
73 itkSetMacro(AirThreshold, double);
74
78 itkGetMacro(ScatterToPrimaryRatio, double);
79 itkSetMacro(ScatterToPrimaryRatio, double);
80
83 itkGetMacro(NonNegativityConstraintThreshold, double);
84 itkSetMacro(NonNegativityConstraintThreshold, double);
85
86protected:
89
91 void
92 EnlargeOutputRequestedRegion(itk::DataObject * itkNotUsed(output)) override;
93 void
94 ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, ThreadIdType threadId) override;
95
99 unsigned int
100 SplitRequestedRegion(unsigned int i, unsigned int num, OutputImageRegionType & splitRegion) override;
101 virtual int
102 SplitRequestedRegion(int i, int num, OutputImageRegionType & splitRegion);
103
104private:
106 double m_AirThreshold{ 32000 };
107
110
113}; // end of class
114
115} // end namespace rtk
116
117#ifndef ITK_MANUAL_INSTANTIATION
118# include "rtkBoellaardScatterCorrectionImageFilter.hxx"
119#endif
120
121#endif
Base class for all data objects in ITK.
Base class for filters that take an image as input and produce an image as output.
Base class for filters that take an image as input and overwrite that image as the output.
Implements transparent reference counting.
unsigned int SplitRequestedRegion(unsigned int i, unsigned int num, OutputImageRegionType &splitRegion) override
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
void EnlargeOutputRequestedRegion(itk::DataObject *output) override
virtual int SplitRequestedRegion(int i, int num, OutputImageRegionType &splitRegion)
~BoellaardScatterCorrectionImageFilter() override=default
itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
unsigned int ThreadIdType
Definition itkIntTypes.h:98
#define itkSetMacro(name, type)