ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkWaterPrecorrectionImageFilter.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 rtkWaterPrecorrectionImageFilter_h
20#define rtkWaterPrecorrectionImageFilter_h
21
23#include <vector>
24
25#include "rtkConfiguration.h"
26
27namespace rtk
28{
38
39template <class TInputImage, class TOutputImage = TInputImage>
40class ITK_TEMPLATE_EXPORT WaterPrecorrectionImageFilter : public itk::InPlaceImageFilter<TInputImage, TOutputImage>
41{
42public:
43 ITK_DISALLOW_COPY_AND_MOVE(WaterPrecorrectionImageFilter);
44
50
52 using OutputImageRegionType = typename TOutputImage::RegionType;
53 using VectorType = std::vector<double>;
54
56 itkNewMacro(Self);
57
59 itkOverrideGetNameOfClassMacro(WaterPrecorrectionImageFilter);
60
63 itkGetMacro(Coefficients, VectorType);
64 virtual void
66 {
67 if (this->m_Coefficients != _arg)
68 {
69 this->m_Coefficients = _arg;
70 this->Modified();
71 }
72 }
73
74protected:
76 ~WaterPrecorrectionImageFilter() override = default;
77
78 void
79 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
80
81private:
82 VectorType m_Coefficients; // Correction coefficients
83};
84} // end namespace rtk
85
86#ifndef ITK_MANUAL_INSTANTIATION
87# include "rtkWaterPrecorrectionImageFilter.hxx"
88#endif
89
90#endif
Base class for filters that take an image as input and overwrite that image as the output.
virtual void Modified() const
Implements transparent reference counting.
~WaterPrecorrectionImageFilter() override=default
virtual void SetCoefficients(const VectorType _arg)
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override