MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitk::ToFImageDownsamplingFilter Class Reference

Reduces the resolution of a ToF distance image. Although it is meant to be used for ToF distance images, it should work for any 2D or 3D images. The dimensions (in pixels) of the desired image are taken as input parameters, and an image with these specified dimensions is created. More...

#include <mitkToFImageDownsamplingFilter.h>

Inheritance diagram for mitk::ToFImageDownsamplingFilter:

Public Member Functions

 mitkClassMacro (ToFImageDownsamplingFilter, ImageToImageFilter)
 
 itkFactorylessNewMacro (Self)
 
 itkCloneMacro (Self)
 
 itkSetMacro (ResampledX, double)
 
 itkGetMacro (ResampledX, double)
 
 itkSetMacro (ResampledY, double)
 
 itkGetMacro (ResampledY, double)
 
 itkSetMacro (ResampledZ, double)
 
 itkGetMacro (ResampledZ, double)
 

Protected Member Functions

 ToFImageDownsamplingFilter ()
 Standard constructor.
 
 ~ToFImageDownsamplingFilter () override
 Standard destructor.
 
void GenerateData () override
 Method generating the output of this filter. Called in the updated process of the pipeline. This method calls the AccessFixedDimensionByItk class with the ItkImageResampling function below.
 
template<typename TPixel , unsigned int VImageDimension>
void ItkImageResampling (const itk::Image< TPixel, VImageDimension > *itkImage)
 Templated method for ITK image type which performs the resampling with an itk filter.
 

Protected Attributes

double m_ResampledX
 length of x dimension of output image in pixels
 
double m_ResampledY
 length of y dimension of output image in pixels
 
double m_ResampledZ
 length of z dimension of output image in pixels (if 2D, default is set to 1)
 

Detailed Description

Reduces the resolution of a ToF distance image. Although it is meant to be used for ToF distance images, it should work for any 2D or 3D images. The dimensions (in pixels) of the desired image are taken as input parameters, and an image with these specified dimensions is created.

Definition at line 33 of file mitkToFImageDownsamplingFilter.h.

Constructor & Destructor Documentation

◆ ToFImageDownsamplingFilter()

mitk::ToFImageDownsamplingFilter::ToFImageDownsamplingFilter ( )
protected

Standard constructor.

Definition at line 22 of file mitkToFImageDownsamplingFilter.cpp.

◆ ~ToFImageDownsamplingFilter()

mitk::ToFImageDownsamplingFilter::~ToFImageDownsamplingFilter ( )
overrideprotected

Standard destructor.

Definition at line 27 of file mitkToFImageDownsamplingFilter.cpp.

Member Function Documentation

◆ GenerateData()

void mitk::ToFImageDownsamplingFilter::GenerateData ( )
overrideprotected

Method generating the output of this filter. Called in the updated process of the pipeline. This method calls the AccessFixedDimensionByItk class with the ItkImageResampling function below.

Definition at line 35 of file mitkToFImageDownsamplingFilter.cpp.

◆ itkCloneMacro()

mitk::ToFImageDownsamplingFilter::itkCloneMacro ( Self )

◆ itkFactorylessNewMacro()

mitk::ToFImageDownsamplingFilter::itkFactorylessNewMacro ( Self )

◆ itkGetMacro() [1/3]

mitk::ToFImageDownsamplingFilter::itkGetMacro ( ResampledX ,
double  )

◆ itkGetMacro() [2/3]

mitk::ToFImageDownsamplingFilter::itkGetMacro ( ResampledY ,
double  )

◆ itkGetMacro() [3/3]

mitk::ToFImageDownsamplingFilter::itkGetMacro ( ResampledZ ,
double  )

◆ ItkImageResampling()

template<typename TPixel , unsigned int VImageDimension>
void mitk::ToFImageDownsamplingFilter::ItkImageResampling ( const itk::Image< TPixel, VImageDimension > * itkImage)
protected

Templated method for ITK image type which performs the resampling with an itk filter.

Parameters
itkImageis the input to the filter converted to ITK format

Definition at line 79 of file mitkToFImageDownsamplingFilter.cpp.

◆ itkSetMacro() [1/3]

mitk::ToFImageDownsamplingFilter::itkSetMacro ( ResampledX ,
double  )

◆ itkSetMacro() [2/3]

mitk::ToFImageDownsamplingFilter::itkSetMacro ( ResampledY ,
double  )

◆ itkSetMacro() [3/3]

mitk::ToFImageDownsamplingFilter::itkSetMacro ( ResampledZ ,
double  )

◆ mitkClassMacro()

mitk::ToFImageDownsamplingFilter::mitkClassMacro ( ToFImageDownsamplingFilter ,
ImageToImageFilter  )

Member Data Documentation

◆ m_ResampledX

double mitk::ToFImageDownsamplingFilter::m_ResampledX
protected

length of x dimension of output image in pixels

Definition at line 73 of file mitkToFImageDownsamplingFilter.h.

◆ m_ResampledY

double mitk::ToFImageDownsamplingFilter::m_ResampledY
protected

length of y dimension of output image in pixels

Definition at line 74 of file mitkToFImageDownsamplingFilter.h.

◆ m_ResampledZ

double mitk::ToFImageDownsamplingFilter::m_ResampledZ
protected

length of z dimension of output image in pixels (if 2D, default is set to 1)

Definition at line 75 of file mitkToFImageDownsamplingFilter.h.


The documentation for this class was generated from the following files: