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

#include <rtkImportImageFilter.h>

+ Inheritance diagram for rtk::ImportImageFilter< TImage >:
+ Collaboration diagram for rtk::ImportImageFilter< TImage >:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::Matrix< double, TImage::ImageDimension, TImage::ImageDimensionDirectionType
 
typedef itk::Index< TImage::ImageDimensionIndexType
 
typedef TImage::PointType OriginType
 
typedef TImage::Pointer OutputImagePointer
 
typedef TImage::PixelType PixelType
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::ImageRegion< TImage::ImageDimensionRegionType
 
typedef ImportImageFilter Self
 
typedef itk::Size< TImage::ImageDimensionSizeType
 
typedef SizeType::SizeValueType SizeValueType
 
typedef TImage::SpacingType SpacingType
 
typedef itk::ImageSource< TImage > Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual const DirectionTypeGetDirection () const
 
PixelTypeGetImportPointer ()
 
virtual const char * GetNameOfClass () const
 
const RegionTypeGetRegion () const
 
virtual void SetDirection (const DirectionType &direction)
 
void SetImportPointer (PixelType *ptr, SizeValueType num, bool LetFilterManageMemory)
 
void SetRegion (const RegionType &region)
 
virtual void SetSpacing (SpacingType _arg)
 
virtual const SpacingTypeGetSpacing () const
 
virtual void SetSpacing (const float data[])
 
virtual void SetOrigin (OriginType _arg)
 
virtual const OriginTypeGetOrigin () const
 
virtual void SetOrigin (const float data[])
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

void EnlargeOutputRequestedRegion (itk::DataObject *output) override
 
void GenerateData () override
 
void GenerateOutputInformation () override
 
 ImportImageFilter ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
 ~ImportImageFilter ()
 

Private Member Functions

 ImportImageFilter (const ImportImageFilter &)
 
void operator= (const ImportImageFilter &)
 

Private Attributes

DirectionType m_Direction
 
bool m_FilterManageMemory
 
PixelTypem_ImportPointer
 
OriginType m_Origin
 
RegionType m_Region
 
SizeValueType m_Size
 
SpacingType m_Spacing
 

Detailed Description

template<typename TImage>
class rtk::ImportImageFilter< TImage >

Import data from a standard C array into an itk::Image.

ImportImageFilter provides a mechanism for importing data into a TImage. ImportImageFilter is an image source, so it behaves like any other pipeline object.

This class is templated over the image type of the output image, unlike itk::ImportImageFilter which is templated over the pixel type and the dimension and is therefore incompatible with itk::CudaImage.

Author
Marc Vila

Definition at line 44 of file rtkImportImageFilter.h.

Member Typedef Documentation

template<typename TImage >
typedef itk::SmartPointer< const Self > rtk::ImportImageFilter< TImage >::ConstPointer

Definition at line 56 of file rtkImportImageFilter.h.

template<typename TImage >
typedef itk::Matrix< double, TImage::ImageDimension, TImage::ImageDimension > rtk::ImportImageFilter< TImage >::DirectionType

Definition at line 116 of file rtkImportImageFilter.h.

template<typename TImage >
typedef itk::Index< TImage::ImageDimension > rtk::ImportImageFilter< TImage >::IndexType

Index typedef support. An index is used to access pixel values.

Definition at line 62 of file rtkImportImageFilter.h.

template<typename TImage >
typedef TImage::PointType rtk::ImportImageFilter< TImage >::OriginType

Definition at line 50 of file rtkImportImageFilter.h.

template<typename TImage >
typedef TImage::Pointer rtk::ImportImageFilter< TImage >::OutputImagePointer

Typedef for the output image.

Definition at line 48 of file rtkImportImageFilter.h.

template<typename TImage >
typedef TImage::PixelType rtk::ImportImageFilter< TImage >::PixelType

Type of the output image pixel type.

Definition at line 76 of file rtkImportImageFilter.h.

template<typename TImage >
typedef itk::SmartPointer< Self > rtk::ImportImageFilter< TImage >::Pointer

Definition at line 55 of file rtkImportImageFilter.h.

template<typename TImage >
typedef itk::ImageRegion< TImage::ImageDimension > rtk::ImportImageFilter< TImage >::RegionType

Region typedef support. A region is used to specify a subset of an image.

Definition at line 73 of file rtkImportImageFilter.h.

template<typename TImage >
typedef ImportImageFilter rtk::ImportImageFilter< TImage >::Self

Standard class typedefs.

Definition at line 53 of file rtkImportImageFilter.h.

template<typename TImage >
typedef itk::Size< TImage::ImageDimension > rtk::ImportImageFilter< TImage >::SizeType

Size typedef support. A size is used to define region bounds.

Definition at line 68 of file rtkImportImageFilter.h.

template<typename TImage >
typedef SizeType::SizeValueType rtk::ImportImageFilter< TImage >::SizeValueType

Definition at line 69 of file rtkImportImageFilter.h.

template<typename TImage >
typedef TImage::SpacingType rtk::ImportImageFilter< TImage >::SpacingType

Definition at line 49 of file rtkImportImageFilter.h.

template<typename TImage >
typedef itk::ImageSource<TImage> rtk::ImportImageFilter< TImage >::Superclass

Definition at line 54 of file rtkImportImageFilter.h.

Constructor & Destructor Documentation

template<typename TImage >
rtk::ImportImageFilter< TImage >::ImportImageFilter ( )
protected
template<typename TImage >
rtk::ImportImageFilter< TImage >::~ImportImageFilter ( )
protected
template<typename TImage >
rtk::ImportImageFilter< TImage >::ImportImageFilter ( const ImportImageFilter< TImage > &  )
private

Member Function Documentation

template<typename TImage >
virtual::itk::LightObject::Pointer rtk::ImportImageFilter< TImage >::CreateAnother ( ) const
template<typename TImage >
void rtk::ImportImageFilter< TImage >::EnlargeOutputRequestedRegion ( itk::DataObject output)
overrideprotected

This filter can only produce the amount of data that it is given, so we must override ProcessObject::EnlargeOutputRequestedRegion() (The default implementation of a source produces the amount of data requested. This source, however, can only produce what it is given.)

See also
ProcessObject::EnlargeOutputRequestedRegion()
template<typename TImage >
void rtk::ImportImageFilter< TImage >::GenerateData ( )
overrideprotected

This filter does not actually "produce" any data, rather it "wraps" the user supplied data into an itk::Image.

template<typename TImage >
void rtk::ImportImageFilter< TImage >::GenerateOutputInformation ( )
overrideprotected

This is a source, so it must set the spacing, size, and largest possible region for the output image that it will produce.

See also
ProcessObject::GenerateOutputInformation()
template<typename TImage >
virtual const DirectionType& rtk::ImportImageFilter< TImage >::GetDirection ( ) const
virtual

Get the direction of the image

See also
SetDirection
template<typename TImage >
PixelType* rtk::ImportImageFilter< TImage >::GetImportPointer ( )

Get the pointer from which the image data is imported.

template<typename TImage >
virtual const char* rtk::ImportImageFilter< TImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ProcessObject.

template<typename TImage >
virtual const OriginType& rtk::ImportImageFilter< TImage >::GetOrigin ( ) const
virtual

Set the origin of the image.

See also
GetOrigin()
template<typename TImage >
const RegionType& rtk::ImportImageFilter< TImage >::GetRegion ( ) const
inline

Get the region object that defines the size and starting index for the imported image. This will serve as the LargestPossibleRegion, the BufferedRegion, and the RequestedRegion.

See also
ImageRegion

Definition at line 102 of file rtkImportImageFilter.h.

References itkSetMacro, and itk::ImportImageFilter< class, VImageDimension >::m_Region.

template<typename TImage >
virtual const SpacingType& rtk::ImportImageFilter< TImage >::GetSpacing ( ) const
virtual

Set the spacing (size of a pixel) of the image.

See also
GetSpacing()
template<typename TImage >
static Pointer rtk::ImportImageFilter< TImage >::New ( )
static

Method for creation through the object factory.

template<typename TImage >
void rtk::ImportImageFilter< TImage >::operator= ( const ImportImageFilter< TImage > &  )
private
template<typename TImage >
void rtk::ImportImageFilter< TImage >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotected
template<typename TImage >
virtual void rtk::ImportImageFilter< TImage >::SetDirection ( const DirectionType direction)
virtual

Set the direction of the image

See also
GetDirection()
template<typename TImage >
void rtk::ImportImageFilter< TImage >::SetImportPointer ( PixelType ptr,
SizeValueType  num,
bool  LetFilterManageMemory 
)

Set the pointer from which the image data is imported. "num" is the number of pixels in the block of memory. If "LetFilterManageMemory" is false, then the this filter will not free the memory in its destructor and the application providing the buffer retains the responsibility of freeing the memory for this image data. If "LetFilterManageMemory" is true, then this class will free the memory when this object is destroyed.

template<typename TImage >
virtual void rtk::ImportImageFilter< TImage >::SetOrigin ( OriginType  _arg)
virtual

Set the origin of the image.

See also
GetOrigin()
template<typename TImage >
virtual void rtk::ImportImageFilter< TImage >::SetOrigin ( const float  data[])
virtual

Set the origin of the image.

See also
GetOrigin()
template<typename TImage >
void rtk::ImportImageFilter< TImage >::SetRegion ( const RegionType region)
inline

Set the region object that defines the size and starting index for the imported image. This will serve as the LargestPossibleRegion, the BufferedRegion, and the RequestedRegion.

See also
ImageRegion

Definition at line 95 of file rtkImportImageFilter.h.

References itk::ImportImageFilter< class, VImageDimension >::m_Region.

template<typename TImage >
virtual void rtk::ImportImageFilter< TImage >::SetSpacing ( SpacingType  _arg)
virtual

Set the spacing (size of a pixel) of the image.

See also
GetSpacing()
template<typename TImage >
virtual void rtk::ImportImageFilter< TImage >::SetSpacing ( const float  data[])
virtual

Set the spacing (size of a pixel) of the image.

See also
GetSpacing()

Member Data Documentation

template<typename TImage >
DirectionType rtk::ImportImageFilter< TImage >::m_Direction
private

Definition at line 159 of file rtkImportImageFilter.h.

template<typename TImage >
bool rtk::ImportImageFilter< TImage >::m_FilterManageMemory
private

Definition at line 162 of file rtkImportImageFilter.h.

template<typename TImage >
PixelType* rtk::ImportImageFilter< TImage >::m_ImportPointer
private

Definition at line 161 of file rtkImportImageFilter.h.

template<typename TImage >
OriginType rtk::ImportImageFilter< TImage >::m_Origin
private

Definition at line 158 of file rtkImportImageFilter.h.

template<typename TImage >
RegionType rtk::ImportImageFilter< TImage >::m_Region
private

Definition at line 156 of file rtkImportImageFilter.h.

template<typename TImage >
SizeValueType rtk::ImportImageFilter< TImage >::m_Size
private

Definition at line 163 of file rtkImportImageFilter.h.

template<typename TImage >
SpacingType rtk::ImportImageFilter< TImage >::m_Spacing
private

Definition at line 157 of file rtkImportImageFilter.h.


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