MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkToFImageDownsamplingFilter.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found 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
22namespace mitk
23{
33 class MITKTOFPROCESSING_EXPORT ToFImageDownsamplingFilter : public ImageToImageFilter
34 {
35 public:
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
59
64 void GenerateData() override;
65
70 template<typename TPixel, unsigned int VImageDimension>
71 void ItkImageResampling( const itk::Image<TPixel,VImageDimension>* itkImage );
72
76
77};
78}// end namespace mitk
79#endif
Reduces the resolution of a ToF distance image. Although it is meant to be used for ToF distance imag...
itkSetMacro(ResampledZ, double)
itkGetMacro(ResampledY, double)
itkSetMacro(ResampledX, double)
double m_ResampledX
length of x dimension of output image in pixels
itkSetMacro(ResampledY, double)
itkGetMacro(ResampledZ, double)
mitkClassMacro(ToFImageDownsamplingFilter, ImageToImageFilter)
itkGetMacro(ResampledX, double)
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
IGT Exceptions.