RTK  1.4.0
Reconstruction Toolkit
rtkDPExtractShroudSignalImageFilter.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  * http://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 rtkDPExtractShroudSignalImageFilter_h
20 #define rtkDPExtractShroudSignalImageFilter_h
21 
22 #include <itkImageToImageFilter.h>
23 
24 namespace rtk
25 {
37 template<class TInputPixel, class TOutputPixel>
39  public itk::ImageToImageFilter<itk::Image<TInputPixel, 2>, itk::Image<TOutputPixel, 1> >
40 {
41 public:
49 
51  itkStaticConstMacro(InputImageDimension, unsigned int,
52  TInputImage::ImageDimension);
53  itkStaticConstMacro(OutputImageDimension, unsigned int,
54  TOutputImage::ImageDimension);
55  itkStaticConstMacro(ImageDimension, unsigned int,
56  TOutputImage::ImageDimension);
58 
60  itkNewMacro(Self);
61 
64 
66  itkGetMacro(Amplitude, double);
67  itkSetMacro(Amplitude, double);
69 
70 protected:
72  virtual ~DPExtractShroudSignalImageFilter() ITK_OVERRIDE {}
73 
74  void GenerateOutputInformation() ITK_OVERRIDE;
75  void GenerateInputRequestedRegion() ITK_OVERRIDE;
76  void GenerateData() ITK_OVERRIDE;
77 
78 private:
79  DPExtractShroudSignalImageFilter(const Self&); //purposely not implemented
80  void operator=(const Self&); //purposely not implemented
81 
82  double m_Amplitude;
83 
84 }; // end of class
85 
86 } // end of namespace rtk
87 
88 #ifndef ITK_MANUAL_INSTANTIATION
89 #include "rtkDPExtractShroudSignalImageFilter.hxx"
90 #endif
91 
92 #endif // ! rtkDPExtractShroudSignalImageFilter_h
itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
Extract the signal corresponding to the breathing motion (1D) from a shroud image (2D)...
#define itkSetMacro(name, type)