ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkEdfRawToAttenuationImageFilter.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 rtkEdfRawToAttenuationImageFilter_h
20#define rtkEdfRawToAttenuationImageFilter_h
21
24
25#include "rtkConfiguration.h"
26
27namespace rtk
28{
29
37
38template <class TInputImage, class TOutputImage = TInputImage>
39class ITKIOImageBase_HIDDEN EdfRawToAttenuationImageFilter : public itk::ImageToImageFilter<TInputImage, TOutputImage>
40{
41public:
42 ITK_DISALLOW_COPY_AND_MOVE(EdfRawToAttenuationImageFilter);
43
49
51 using InputImageType = TInputImage;
52 using OutputImageType = TOutputImage;
53 using OutputImageRegionType = typename TOutputImage::RegionType;
54
55 using FileNamesContainer = std::vector<std::string>;
56
58 itkNewMacro(Self);
59
61 itkOverrideGetNameOfClassMacro(EdfRawToAttenuationImageFilter);
62
65 void
67 {
68 if (m_FileNames != name)
69 {
70 m_FileNames = name;
71 this->Modified();
72 }
73 }
74
75 [[nodiscard]] const FileNamesContainer &
77 {
78 return m_FileNames;
79 }
80
81protected:
83 ~EdfRawToAttenuationImageFilter() override = default;
84
85 void
87
88 void
89 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
90
91private:
95
98
100 std::vector<typename InputImageType::IndexValueType> m_ReferenceIndices;
101}; // end of class
102
103} // end namespace rtk
104
105#ifndef ITK_MANUAL_INSTANTIATION
106# include "rtkEdfRawToAttenuationImageFilter.hxx"
107#endif
108
109#endif
Data source that reads image data from a series of disk files.
Base class for filters that take an image as input and produce an image as output.
virtual void Modified() const
Implements transparent reference counting.
~EdfRawToAttenuationImageFilter() override=default
itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
void SetFileNames(const FileNamesContainer &name)
const FileNamesContainer & GetFileNames() const
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
typename TOutputImage::RegionType OutputImageRegionType
std::vector< typename InputImageType::IndexValueType > m_ReferenceIndices
void BeforeThreadedGenerateData() override
itk::ImageSeriesReader< InputImageType > EdfImageSeries