Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkToFImageDownsamplingFilter.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 #ifndef __mitkToFImageDownsamplingFilter_h
13 #define __mitkToFImageDownsamplingFilter_h
14 
15 //MITK includes
16 #include <mitkImage.h>
17 #include "mitkImageToImageFilter.h"
18 #include <MitkToFProcessingExports.h>
19 // ITK includes
20 #include "itkImage.h"
21 
22 namespace mitk
23 {
33  class MITKTOFPROCESSING_EXPORT ToFImageDownsamplingFilter : public ImageToImageFilter
34  {
35  public:
37  itkFactorylessNewMacro(Self);
38  itkCloneMacro(Self);
39  itkSetMacro(ResampledX,double);
40  itkGetMacro(ResampledX,double);
41 
42  itkSetMacro(ResampledY,double);
43  itkGetMacro(ResampledY,double);
44 
45  itkSetMacro(ResampledZ,double);
46  itkGetMacro(ResampledZ,double);
47 
48 
49  protected:
54 
58  ~ToFImageDownsamplingFilter() override;
59 
64  void GenerateData() override;
65 
72  template<typename TPixel, unsigned int VImageDimension>
73  void ItkImageResampling( const itk::Image<TPixel,VImageDimension>* itkImage );
74 
75  double m_ResampledX;
76  double m_ResampledY;
77  double m_ResampledZ;
78 
79 };
80 }// end namespace mitk
81 #endif
double m_ResampledX
length of x dimension of output image in pixels
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
double m_ResampledZ
length of z dimension of output image in pixels (if 2D, default is set to 1)
double m_ResampledY
length of y dimension of output image in pixels
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Superclass of all classes having one or more Images as input and generating Images as output...
Reduces the resolution of a ToF distance image. Although it is meant to be used for ToF distance imag...