ITK  4.0.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
itk::ExtractOrthogonalSwath2DImageFilter< TImage > Class Template Reference

Extracts into rectangular form a "swath" image from the input image along the parametric path. More...

#include <itkExtractOrthogonalSwath2DImageFilter.h>

Inheritance diagram for itk::ExtractOrthogonalSwath2DImageFilter< TImage >:
Collaboration diagram for itk::ExtractOrthogonalSwath2DImageFilter< TImage >:

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef ImageType::ConstPointer ImageConstPointer
typedef ImageType::IndexType ImageIndexType
typedef ImageType::PixelType ImagePixelType
typedef ImageType::Pointer ImagePointer
typedef ImageType::RegionType ImageRegionType
typedef TImage ImageType
typedef PathType::ConstPointer PathConstPointer
typedef
PathType::ContinuousIndexType 
PathContinuousIndexType
typedef PathType::IndexType PathIndexType
typedef PathType::InputType PathInputType
typedef PathType::OffsetType PathOffsetType
typedef PathType::OutputType PathOutputType
typedef ParametricPath< 2 > PathType
typedef PathType::VectorType PathVectorType
typedef SmartPointer< SelfPointer
typedef
ExtractOrthogonalSwath2DImageFilter 
Self
typedef ImageType::SizeType SizeType
typedef
ImageAndPathToImageFilter
< TImage, ParametricPath
< 2 >, TImage > 
Superclass

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual void EnlargeOutputRequestedRegion (DataObject *output)
virtual const char * GetNameOfClass () const
virtual const double * GetOrigin () const
virtual const double * GetSpacing () const
virtual void SetDefaultPixelValue (ImagePixelType _arg)
virtual void SetOrigin (const float *origin)
virtual void SetOrigin (const double *origin)
virtual void SetSize (SizeType _arg)
virtual void SetSpacing (const double *spacing)
virtual void SetSpacing (const float *spacing)

Static Public Member Functions

static Pointer New ()

Static Public Attributes

static const unsigned int PathDimension = 2
static const unsigned int ImageDimension = TImage::ImageDimension

Protected Member Functions

 ExtractOrthogonalSwath2DImageFilter ()
virtual void GenerateData (void)
virtual void GenerateOutputInformation (void)
void PrintSelf (std::ostream &os, Indent indent) const
virtual ~ExtractOrthogonalSwath2DImageFilter ()
virtual void GenerateInputRequestedRegion ()

Private Member Functions

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

Private Attributes

ImagePixelType m_DefaultPixelValue
double m_Origin [ImageDimension]
SizeType m_Size
double m_Spacing [ImageDimension]

Detailed Description

template<class TImage>
class itk::ExtractOrthogonalSwath2DImageFilter< TImage >

Extracts into rectangular form a "swath" image from the input image along the parametric path.

Extracts a rectangular "swath" image from the 2D input image by interpolating image pixels orthogonal to the parametric path while walking along the path. The top half of the swath image corresponds to pixels to the left of the path when walking along the path, and the bottom half of the swath image likewise corresponds to pixels to the right of the path when walking along the path. The center row of the swath image corresponds to pixels laying directly on the path. The input and output images must be of the same type.

Examples:

itkOrthogonalSwath2DPathFilterTest.cxx.

Definition at line 42 of file itkExtractOrthogonalSwath2DImageFilter.h.


Member Typedef Documentation

template<class TImage >
typedef SmartPointer< const Self > itk::ExtractOrthogonalSwath2DImageFilter< TImage >::ConstPointer
template<class TImage >
typedef ImageType::ConstPointer itk::ExtractOrthogonalSwath2DImageFilter< TImage >::ImageConstPointer

Definition at line 62 of file itkExtractOrthogonalSwath2DImageFilter.h.

template<class TImage >
typedef ImageType::IndexType itk::ExtractOrthogonalSwath2DImageFilter< TImage >::ImageIndexType

Definition at line 64 of file itkExtractOrthogonalSwath2DImageFilter.h.

template<class TImage >
typedef ImageType::PixelType itk::ExtractOrthogonalSwath2DImageFilter< TImage >::ImagePixelType

Definition at line 65 of file itkExtractOrthogonalSwath2DImageFilter.h.

template<class TImage >
typedef ImageType::Pointer itk::ExtractOrthogonalSwath2DImageFilter< TImage >::ImagePointer

Definition at line 61 of file itkExtractOrthogonalSwath2DImageFilter.h.

template<class TImage >
typedef ImageType::RegionType itk::ExtractOrthogonalSwath2DImageFilter< TImage >::ImageRegionType

Definition at line 63 of file itkExtractOrthogonalSwath2DImageFilter.h.

template<class TImage >
typedef TImage itk::ExtractOrthogonalSwath2DImageFilter< TImage >::ImageType

Some convenient typedefs.

Definition at line 57 of file itkExtractOrthogonalSwath2DImageFilter.h.

Definition at line 67 of file itkExtractOrthogonalSwath2DImageFilter.h.

Definition at line 71 of file itkExtractOrthogonalSwath2DImageFilter.h.

Definition at line 70 of file itkExtractOrthogonalSwath2DImageFilter.h.

Definition at line 68 of file itkExtractOrthogonalSwath2DImageFilter.h.

Definition at line 72 of file itkExtractOrthogonalSwath2DImageFilter.h.

Definition at line 69 of file itkExtractOrthogonalSwath2DImageFilter.h.

template<class TImage >
typedef ParametricPath< 2 > itk::ExtractOrthogonalSwath2DImageFilter< TImage >::PathType

Definition at line 66 of file itkExtractOrthogonalSwath2DImageFilter.h.

Definition at line 73 of file itkExtractOrthogonalSwath2DImageFilter.h.

template<class TImage >
typedef SmartPointer< Self > itk::ExtractOrthogonalSwath2DImageFilter< TImage >::Pointer

Standard class typedefs.

Reimplemented from itk::ImageAndPathToImageFilter< TImage, ParametricPath< 2 >, TImage >.

Definition at line 47 of file itkExtractOrthogonalSwath2DImageFilter.h.

template<class TImage >
typedef ImageType::SizeType itk::ExtractOrthogonalSwath2DImageFilter< TImage >::SizeType

Definition at line 74 of file itkExtractOrthogonalSwath2DImageFilter.h.

template<class TImage >
typedef ImageAndPathToImageFilter< TImage, ParametricPath< 2 >, TImage > itk::ExtractOrthogonalSwath2DImageFilter< TImage >::Superclass

Constructor & Destructor Documentation

template<class TImage >
itk::ExtractOrthogonalSwath2DImageFilter< TImage >::ExtractOrthogonalSwath2DImageFilter ( ) [inline, protected]

Definition at line 125 of file itkExtractOrthogonalSwath2DImageFilter.h.

template<class TImage >
virtual itk::ExtractOrthogonalSwath2DImageFilter< TImage >::~ExtractOrthogonalSwath2DImageFilter ( ) [inline, protected, virtual]

Definition at line 134 of file itkExtractOrthogonalSwath2DImageFilter.h.

template<class TImage >
itk::ExtractOrthogonalSwath2DImageFilter< TImage >::ExtractOrthogonalSwath2DImageFilter ( const Self ) [private]

Member Function Documentation

template<class TImage >
virtual::itk::LightObject::Pointer itk::ExtractOrthogonalSwath2DImageFilter< TImage >::CreateAnother ( void  ) const [virtual]

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from itk::ImageAndPathToImageFilter< TImage, ParametricPath< 2 >, TImage >.

template<class TImage >
virtual void itk::ExtractOrthogonalSwath2DImageFilter< TImage >::EnlargeOutputRequestedRegion ( DataObject output) [inline, virtual]

Request the largest possible region on all outputs.

Reimplemented from itk::ProcessObject.

Definition at line 117 of file itkExtractOrthogonalSwath2DImageFilter.h.

template<class TImage >
virtual void itk::ExtractOrthogonalSwath2DImageFilter< TImage >::GenerateData ( void  ) [protected, virtual]

A version of GenerateData() specific for image processing filters. This implementation will split the processing across multiple threads. The buffer is allocated by this method. Then the BeforeThreadedGenerateData() method is called (if provided). Then, a series of threads are spawned each calling ThreadedGenerateData(). After all the threads have completed processing, the AfterThreadedGenerateData() method is called (if provided). If an image processing filter cannot be threaded, the filter should provide an implementation of GenerateData(). That implementation is responsible for allocating the output buffer. If a filter an be threaded, it should NOT provide a GenerateData() method but should provide a ThreadedGenerateData() instead.

See also:
ThreadedGenerateData()

Reimplemented from itk::ImageSource< TImage >.

template<class TImage >
virtual void itk::ExtractOrthogonalSwath2DImageFilter< TImage >::GenerateInputRequestedRegion ( void  ) [inline, protected, virtual]

Request the largest possible region on all inputs.

Reimplemented from itk::ImageToImageFilter< TImage, TImage >.

Definition at line 144 of file itkExtractOrthogonalSwath2DImageFilter.h.

template<class TImage >
virtual void itk::ExtractOrthogonalSwath2DImageFilter< TImage >::GenerateOutputInformation ( void  ) [protected, virtual]

GenerateOutputInformation does not rely on input information

Reimplemented from itk::ProcessObject.

template<class TImage >
virtual const char* itk::ExtractOrthogonalSwath2DImageFilter< TImage >::GetNameOfClass ( ) const [virtual]

Run-time type information (and related methods).

Reimplemented from itk::ImageAndPathToImageFilter< TImage, ParametricPath< 2 >, TImage >.

template<class TImage >
virtual const double* itk::ExtractOrthogonalSwath2DImageFilter< TImage >::GetOrigin ( ) const [virtual]
template<class TImage >
virtual const double* itk::ExtractOrthogonalSwath2DImageFilter< TImage >::GetSpacing ( ) const [virtual]
template<class TImage >
static Pointer itk::ExtractOrthogonalSwath2DImageFilter< TImage >::New ( ) [static]

Method for creation through the object factory.

Reimplemented from itk::ImageAndPathToImageFilter< TImage, ParametricPath< 2 >, TImage >.

template<class TImage >
void itk::ExtractOrthogonalSwath2DImageFilter< TImage >::operator= ( const Self ) [private]

PushBackInput(), PushFronInput() in the public section force the input to be the type expected by an ImageToImageFilter. However, these methods end of "hiding" the versions from the superclass (ProcessObject) whose arguments are DataObjects. Here, we re-expose the versions from ProcessObject to avoid warnings about hiding methods from the superclass.

Reimplemented from itk::ImageAndPathToImageFilter< TImage, ParametricPath< 2 >, TImage >.

template<class TImage >
void itk::ExtractOrthogonalSwath2DImageFilter< TImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [protected, virtual]

Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from itk::ImageAndPathToImageFilter< TImage, ParametricPath< 2 >, TImage >.

template<class TImage >
virtual void itk::ExtractOrthogonalSwath2DImageFilter< TImage >::SetDefaultPixelValue ( ImagePixelType  _arg) [virtual]

Set the default pixel value of the swath image, to be used if the swath extends past the edge of the input image data.

template<class TImage >
virtual void itk::ExtractOrthogonalSwath2DImageFilter< TImage >::SetOrigin ( const double *  origin) [virtual]

The origin of the output image. The origin is the geometric coordinates of the index (0,0,...,0). It is stored internally as double but may be set from float.

See also:
GetOrigin()
template<class TImage >
virtual void itk::ExtractOrthogonalSwath2DImageFilter< TImage >::SetOrigin ( const float *  origin) [virtual]
template<class TImage >
virtual void itk::ExtractOrthogonalSwath2DImageFilter< TImage >::SetSize ( SizeType  _arg) [virtual]

Set the size of the swath image. The number of rows (size[1]) MUST be odd

template<class TImage >
virtual void itk::ExtractOrthogonalSwath2DImageFilter< TImage >::SetSpacing ( const float *  spacing) [virtual]
template<class TImage >
virtual void itk::ExtractOrthogonalSwath2DImageFilter< TImage >::SetSpacing ( const double *  spacing) [virtual]

Spacing (size of a pixel) of the output image. The spacing is normally the geometric distance between image samples, but in the case of a swath image it is meaningless since the size of each pixel varies depending on the curvature of the input path. It is stored internally as double, but may be set from float.

See also:
GetSpacing()

Member Data Documentation

template<class TImage >
const unsigned int itk::ExtractOrthogonalSwath2DImageFilter< TImage >::ImageDimension = TImage::ImageDimension [static]

ImageDimension constants

Definition at line 80 of file itkExtractOrthogonalSwath2DImageFilter.h.

template<class TImage >
ImagePixelType itk::ExtractOrthogonalSwath2DImageFilter< TImage >::m_DefaultPixelValue [private]

Definition at line 162 of file itkExtractOrthogonalSwath2DImageFilter.h.

template<class TImage >
double itk::ExtractOrthogonalSwath2DImageFilter< TImage >::m_Origin[ImageDimension] [private]

Definition at line 164 of file itkExtractOrthogonalSwath2DImageFilter.h.

template<class TImage >
SizeType itk::ExtractOrthogonalSwath2DImageFilter< TImage >::m_Size [private]

Definition at line 163 of file itkExtractOrthogonalSwath2DImageFilter.h.

template<class TImage >
double itk::ExtractOrthogonalSwath2DImageFilter< TImage >::m_Spacing[ImageDimension] [private]

Definition at line 165 of file itkExtractOrthogonalSwath2DImageFilter.h.

template<class TImage >
const unsigned int itk::ExtractOrthogonalSwath2DImageFilter< TImage >::PathDimension = 2 [static]

ImageDimension constants

Definition at line 78 of file itkExtractOrthogonalSwath2DImageFilter.h.


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