NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
itkMIDASUpSamplingFilter.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef itkMIDASUpSamplingFilter_h
16 #define itkMIDASUpSamplingFilter_h
17 
18 #include <itkImageToImageFilter.h>
19 
20 namespace itk
21 {
22 
38  template <class TInputImage, class TOutputImage>
39  class ITK_EXPORT MIDASUpSamplingFilter : public ImageToImageFilter<TInputImage, TOutputImage>
40  {
41  public:
44  typedef ImageToImageFilter<TInputImage, TOutputImage> SuperClass;
45  typedef SmartPointer<Self> Pointer;
46  typedef SmartPointer<const Self> ConstPointer;
47 
49  itkNewMacro(Self);
50 
52  typedef typename TInputImage::PixelType PixelType;
53 
56 
58  typedef typename TInputImage::SizeType SizeType;
59 
61  itkTypeMacro(MIDASUpSamplingFilter, ImageToImageFilter);
62 
64  typedef TInputImage InputImageType;
65  typedef typename InputImageType::ConstPointer InputImageConstPointer;
66  typedef typename InputImageType::Pointer InputImagePointer;
70 
71  typedef TOutputImage OutputImageType;
72  typedef typename OutputImageType::Pointer OutputImagePointer;
76 
78  itkSetMacro(UpSamplingFactor, unsigned int);
79  itkGetConstMacro(UpSamplingFactor, unsigned int);
80 
82  itkSetMacro(InValue, PixelType);
83  itkGetConstMacro(InValue, PixelType);
84 
86  itkSetMacro(OutValue, PixelType);
87  itkGetConstMacro(OutValue, PixelType);
88 
90  virtual void GenerateInputRequestedRegion();
91  virtual void GenerateOutputInformation();
92 
93  protected:
95  virtual ~MIDASUpSamplingFilter() {};
96  void PrintSelf(std::ostream& os, Indent indent) const;
97 
99  virtual void GenerateData();
100 
102  virtual void VerifyInputInformation();
103 
104  private:
105  MIDASUpSamplingFilter(const Self&); //purposely not implemented
106  void operator=(const Self&); //purposely not implemented
107 
109  unsigned int m_UpSamplingFactor;
110 
111  PixelType m_InValue;
112  PixelType m_OutValue;
113  };
114 
115 }
116 
117 #ifndef ITK_MANUAL_INSTANTIATION
118 #include "itkMIDASUpSamplingFilter.txx"
119 #endif
120 
121 #endif
TInputImage InputImageType
Definition: itkMIDASUpSamplingFilter.h:61
OutputImageType::IndexType OutputImageIndexType
Definition: itkMIDASUpSamplingFilter.h:74
virtual ~MIDASUpSamplingFilter()
Definition: itkMIDASUpSamplingFilter.h:95
ImageType::SizeType SizeType
Definition: niftkMakeLapUSProbeBasicModel.cxx:31
OutputImageType::SizeType OutputImageSizeType
Definition: itkMIDASUpSamplingFilter.h:73
Definition: niftkITKAffineResampleImage.cxx:74
ImageType::IndexType IndexType
Definition: niftkMakeLapUSProbeBasicModel.cxx:32
TOutputImage OutputImageType
Definition: itkMIDASUpSamplingFilter.h:71
InputImageType::SizeType InputImageSizeType
Definition: itkMIDASUpSamplingFilter.h:67
SmartPointer< Self > Pointer
Definition: itkMIDASUpSamplingFilter.h:45
TInputImage::IndexType IndexType
Definition: itkMIDASUpSamplingFilter.h:55
InputImageType::ConstPointer InputImageConstPointer
Definition: itkMIDASUpSamplingFilter.h:65
InputImageType::Pointer InputImagePointer
Definition: itkMIDASUpSamplingFilter.h:66
OutputImageType::Pointer OutputImagePointer
Definition: itkMIDASUpSamplingFilter.h:72
float PixelType
Definition: niftkBreastDCEandADC.cxx:88
ImageType::RegionType RegionType
Definition: niftkMakeLapUSProbeBasicModel.cxx:30
ImageToImageFilter< TInputImage, TOutputImage > SuperClass
Definition: itkMIDASUpSamplingFilter.h:44
Performs the up sampling described in step 5 of "Interactive Algorithms for the segmentation and quan...
Definition: itkMIDASUpSamplingFilter.h:39
InputImageType::IndexType InputImageIndexType
Definition: itkMIDASUpSamplingFilter.h:68
TInputImage::SizeType SizeType
Definition: itkMIDASUpSamplingFilter.h:58
OutputImageType::RegionType OutputImageRegionType
Definition: itkMIDASUpSamplingFilter.h:75
SmartPointer< const Self > ConstPointer
Definition: itkMIDASUpSamplingFilter.h:46
InputImageType::RegionType InputImageRegionType
Definition: itkMIDASUpSamplingFilter.h:69
TInputImage::PixelType PixelType
Definition: itkMIDASUpSamplingFilter.h:49
MIDASUpSamplingFilter Self
Definition: itkMIDASUpSamplingFilter.h:43