RTK  1.4.0
Reconstruction Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
rtk::DownsampleImageFilter< TInputImage, TOutputImage > Class Template Reference

#include <rtkDownsampleImageFilter.h>

+ Inheritance diagram for rtk::DownsampleImageFilter< TInputImage, TOutputImage >:
+ Collaboration diagram for rtk::DownsampleImageFilter< TInputImage, TOutputImage >:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef InputImageType::ConstPointer InputImageConstPointer
 
typedef InputImageType::Pointer InputImagePointer
 
typedef TInputImage InputImageType
 
typedef OutputImageType::Pointer OutputImagePointer
 
typedef TOutputImage::RegionType OutputImageRegionType
 
typedef TOutputImage OutputImageType
 
typedef itk::SmartPointer< SelfPointer
 
typedef DownsampleImageFilter Self
 
typedef itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
void GenerateInputRequestedRegion () override
 
void GenerateOutputInformation () override
 
virtual const char * GetNameOfClass () const
 
void SetFactor (unsigned int dimension, unsigned int factor)
 
void SetFactors (unsigned int factors[])
 

Static Public Member Functions

static Pointer New ()
 

Static Public Attributes

static const unsigned int ImageDimension = TInputImage::ImageDimension
 

Protected Member Functions

 DownsampleImageFilter ()
 
virtual ~DownsampleImageFilter () override
 
void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, itk::ThreadIdType) override
 

Private Member Functions

 DownsampleImageFilter (const Self &)
 
void operator= (const Self &)
 

Private Attributes

unsigned int m_Factors [ImageDimension]
 
int m_Offsets [ImageDimension]
 

Detailed Description

template<class TInputImage, class TOutputImage = TInputImage>
class rtk::DownsampleImageFilter< TInputImage, TOutputImage >

Downsamples an image by a factor in each dimension.

This filter is inspired from Dan Mueller's GIFT package http://www.insight-journal.org/browse/publication/103

Author
Cyril Mory

Definition at line 38 of file rtkDownsampleImageFilter.h.

Member Typedef Documentation

template<class TInputImage , class TOutputImage = TInputImage>
typedef itk::SmartPointer<const Self> rtk::DownsampleImageFilter< TInputImage, TOutputImage >::ConstPointer

Definition at line 46 of file rtkDownsampleImageFilter.h.

template<class TInputImage , class TOutputImage = TInputImage>
typedef InputImageType::ConstPointer rtk::DownsampleImageFilter< TInputImage, TOutputImage >::InputImageConstPointer

Definition at line 59 of file rtkDownsampleImageFilter.h.

template<class TInputImage , class TOutputImage = TInputImage>
typedef InputImageType::Pointer rtk::DownsampleImageFilter< TInputImage, TOutputImage >::InputImagePointer

Definition at line 58 of file rtkDownsampleImageFilter.h.

template<class TInputImage , class TOutputImage = TInputImage>
typedef TInputImage rtk::DownsampleImageFilter< TInputImage, TOutputImage >::InputImageType

Definition at line 56 of file rtkDownsampleImageFilter.h.

template<class TInputImage , class TOutputImage = TInputImage>
typedef OutputImageType::Pointer rtk::DownsampleImageFilter< TInputImage, TOutputImage >::OutputImagePointer

Definition at line 57 of file rtkDownsampleImageFilter.h.

template<class TInputImage , class TOutputImage = TInputImage>
typedef TOutputImage::RegionType rtk::DownsampleImageFilter< TInputImage, TOutputImage >::OutputImageRegionType

Typedef to describe the output image region type.

Definition at line 62 of file rtkDownsampleImageFilter.h.

template<class TInputImage , class TOutputImage = TInputImage>
typedef TOutputImage rtk::DownsampleImageFilter< TInputImage, TOutputImage >::OutputImageType

Typedef to images

Definition at line 52 of file rtkDownsampleImageFilter.h.

template<class TInputImage , class TOutputImage = TInputImage>
typedef itk::SmartPointer<Self> rtk::DownsampleImageFilter< TInputImage, TOutputImage >::Pointer

Definition at line 45 of file rtkDownsampleImageFilter.h.

template<class TInputImage , class TOutputImage = TInputImage>
typedef DownsampleImageFilter rtk::DownsampleImageFilter< TInputImage, TOutputImage >::Self

Standard class typedefs.

Definition at line 43 of file rtkDownsampleImageFilter.h.

template<class TInputImage , class TOutputImage = TInputImage>
typedef itk::ImageToImageFilter<TInputImage,TOutputImage> rtk::DownsampleImageFilter< TInputImage, TOutputImage >::Superclass

Definition at line 44 of file rtkDownsampleImageFilter.h.

Constructor & Destructor Documentation

template<class TInputImage , class TOutputImage = TInputImage>
rtk::DownsampleImageFilter< TInputImage, TOutputImage >::DownsampleImageFilter ( )
protected
template<class TInputImage , class TOutputImage = TInputImage>
virtual rtk::DownsampleImageFilter< TInputImage, TOutputImage >::~DownsampleImageFilter ( )
inlineoverrideprotectedvirtual

Definition at line 94 of file rtkDownsampleImageFilter.h.

template<class TInputImage , class TOutputImage = TInputImage>
rtk::DownsampleImageFilter< TInputImage, TOutputImage >::DownsampleImageFilter ( const Self )
private

Member Function Documentation

template<class TInputImage , class TOutputImage = TInputImage>
virtual::itk::LightObject::Pointer rtk::DownsampleImageFilter< TInputImage, TOutputImage >::CreateAnother ( ) const
template<class TInputImage , class TOutputImage = TInputImage>
void rtk::DownsampleImageFilter< TInputImage, TOutputImage >::GenerateInputRequestedRegion ( )
override

DownsampleImageFilter needs a larger input requested region than the output requested region. As such, DownsampleImageFilter needs to provide an implementation for GenerateInputRequestedRegion() in order to inform the pipeline execution model.

See also
ProcessObject::GenerateInputRequestedRegion()
template<class TInputImage , class TOutputImage = TInputImage>
void rtk::DownsampleImageFilter< TInputImage, TOutputImage >::GenerateOutputInformation ( )
override

DownsampleImageFilter produces an image which is a different resolution and with a different pixel spacing than its input image. As such, DownsampleImageFilter needs to provide an implementation for GenerateOutputInformation() in order to inform the pipeline execution model. The original documentation of this method is below.

See also
ProcessObject::GenerateOutputInformaton()
template<class TInputImage , class TOutputImage = TInputImage>
virtual const char* rtk::DownsampleImageFilter< TInputImage, TOutputImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage , class TOutputImage = TInputImage>
static Pointer rtk::DownsampleImageFilter< TInputImage, TOutputImage >::New ( )
static

Method for creation through the object factory.

template<class TInputImage , class TOutputImage = TInputImage>
void rtk::DownsampleImageFilter< TInputImage, TOutputImage >::operator= ( const Self )
private
template<class TInputImage , class TOutputImage = TInputImage>
void rtk::DownsampleImageFilter< TInputImage, TOutputImage >::SetFactor ( unsigned int  dimension,
unsigned int  factor 
)

Sets the downsample factor for the given dimension. All other dimensions are set to 1

template<class TInputImage , class TOutputImage = TInputImage>
void rtk::DownsampleImageFilter< TInputImage, TOutputImage >::SetFactors ( unsigned int  factors[])

Set the downsample factors. Values are clamped to a minimum value of 1.

template<class TInputImage , class TOutputImage = TInputImage>
void rtk::DownsampleImageFilter< TInputImage, TOutputImage >::ThreadedGenerateData ( const OutputImageRegionType outputRegionForThread,
itk::ThreadIdType   
)
overrideprotected

DownsampleImageFilter can be implemented as a multithreaded filter. Therefore, this implementation provides a ThreadedGenerateData() routine which is called for each processing thread. The output image data is allocated automatically by the superclass prior to calling ThreadedGenerateData(). ThreadedGenerateData can only write to the portion of the output image specified by the parameter "outputRegionForThread"

See also
ImageToImageFilter::ThreadedGenerateData(), ImageToImageFilter::GenerateData()

Member Data Documentation

template<class TInputImage , class TOutputImage = TInputImage>
const unsigned int rtk::DownsampleImageFilter< TInputImage, TOutputImage >::ImageDimension = TInputImage::ImageDimension
static

ImageDimension enumeration.

Definition at line 66 of file rtkDownsampleImageFilter.h.

template<class TInputImage , class TOutputImage = TInputImage>
unsigned int rtk::DownsampleImageFilter< TInputImage, TOutputImage >::m_Factors[ImageDimension]
private

Definition at line 119 of file rtkDownsampleImageFilter.h.

template<class TInputImage , class TOutputImage = TInputImage>
int rtk::DownsampleImageFilter< TInputImage, TOutputImage >::m_Offsets[ImageDimension]
private

Definition at line 120 of file rtkDownsampleImageFilter.h.


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