Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #ifndef __mitkToFImageDownsamplingFilter_h
17 #define __mitkToFImageDownsamplingFilter_h
18 
19 //MITK includes
20 #include <mitkImage.h>
21 #include "mitkImageToImageFilter.h"
22 #include <MitkToFProcessingExports.h>
23 // ITK includes
24 #include "itkImage.h"
25 
26 namespace mitk
27 {
37  class MITKTOFPROCESSING_EXPORT ToFImageDownsamplingFilter : public ImageToImageFilter
38  {
39  public:
41  itkFactorylessNewMacro(Self)
42  itkCloneMacro(Self)
43 
44  itkSetMacro(ResampledX,double);
45  itkGetMacro(ResampledX,double);
46 
47  itkSetMacro(ResampledY,double);
48  itkGetMacro(ResampledY,double);
49 
50  itkSetMacro(ResampledZ,double);
51  itkGetMacro(ResampledZ,double);
52 
53 
54  protected:
59 
64 
69  virtual void GenerateData() override;
70 
77  template<typename TPixel, unsigned int VImageDimension>
78  void ItkImageResampling( const itk::Image<TPixel,VImageDimension>* itkImage );
79 
80  double m_ResampledX;
81  double m_ResampledY;
82  double m_ResampledZ;
83 
84 };
85 }// end namespace mitk
86 #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:44
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...