RTK  2.6.0
Reconstruction Toolkit
rtkReg1DExtractShroudSignalImageFilter.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 rtkReg1DExtractShroudSignalImageFilter_h
20 #define rtkReg1DExtractShroudSignalImageFilter_h
21 
22 #include <itkImageToImageFilter.h>
23 
24 namespace rtk
25 {
37 template <class TInputPixel, class TOutputPixel>
38 class ITK_TEMPLATE_EXPORT Reg1DExtractShroudSignalImageFilter
39  : public itk::ImageToImageFilter<itk::Image<TInputPixel, 2>, itk::Image<TOutputPixel, 1>>
40 {
41 public:
42  ITK_DISALLOW_COPY_AND_MOVE(Reg1DExtractShroudSignalImageFilter);
43 
51 
53  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
54  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
55  static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
56 
58  itkNewMacro(Self);
59 
61 #ifdef itkOverrideGetNameOfClassMacro
62  itkOverrideGetNameOfClassMacro(Reg1DExtractShroudSignalImageFilter);
63 #else
65 #endif
66 
67 
68 
69 protected:
71  ~Reg1DExtractShroudSignalImageFilter() override = default;
72 
73  void
74  GenerateOutputInformation() override;
75  void
76  GenerateInputRequestedRegion() override;
77  void
78  GenerateData() override;
79 
80 private:
82  TOutputPixel
83  register1D(const RegisterImageType *, const RegisterImageType *);
84 
85 }; // end of class
86 
87 } // end of namespace rtk
88 
89 #ifndef ITK_MANUAL_INSTANTIATION
90 # include "rtkReg1DExtractShroudSignalImageFilter.hxx"
91 #endif
92 
93 #endif // ! rtkReg1DExtractShroudSignalImageFilter_h
Reg1DExtract the signal corresponding to the breathing motion (1D) from a shroud image (2D)...