Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::ScalarToArrayCastImageFilter< TInputImage, TOutputImage > Class Template Reference
[Multithreaded Filters]

Creates the output image with vector type pixels filled with the intensity values from one or more input images with scalar pixels. More...

#include <itkScalarToArrayCastImageFilter.h>

Inheritance diagram for itk::ScalarToArrayCastImageFilter< TInputImage, TOutputImage >:

Inheritance graph
[legend]
Collaboration diagram for itk::ScalarToArrayCastImageFilter< TInputImage, TOutputImage >:

Collaboration graph
[legend]
List of all members.

[NOHEADER]

virtual const char * GetClassName () const
Pointer New ()

Public Types

typedef ScalarToArrayCastImageFilter Self
typedef ImageToImageFilter<
TInputImage, TOutputImage > 
Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef Superclass::OutputImageRegionType OutputImageRegionType
typedef TOutputImage::PixelType OutputImagePixelType

Protected Member Functions

 ScalarToArrayCastImageFilter ()
virtual ~ScalarToArrayCastImageFilter ()
void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, int threadId)

Detailed Description

template<class TInputImage, class TOutputImage>
class itk::ScalarToArrayCastImageFilter< TInputImage, TOutputImage >

Creates the output image with vector type pixels filled with the intensity values from one or more input images with scalar pixels.

This filter is templated over the input image type and output image type. The each dimension of the output image pixel is filled with each input image pixel's scalar pixel value. This filter can be used to cast a scalar image to a vector image if there is only one input image.

Definition at line 42 of file itkScalarToArrayCastImageFilter.h.


Member Typedef Documentation

template<class TInputImage, class TOutputImage>
typedef SmartPointer<const Self> itk::ScalarToArrayCastImageFilter< TInputImage, TOutputImage >::ConstPointer
 

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 50 of file itkScalarToArrayCastImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef TOutputImage::PixelType itk::ScalarToArrayCastImageFilter< TInputImage, TOutputImage >::OutputImagePixelType
 

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 58 of file itkScalarToArrayCastImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef Superclass::OutputImageRegionType itk::ScalarToArrayCastImageFilter< TInputImage, TOutputImage >::OutputImageRegionType
 

Superclass typedefs.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 57 of file itkScalarToArrayCastImageFilter.h.

Referenced by itk::ScalarToArrayCastImageFilter< TInputImage, TOutputImage >::~ScalarToArrayCastImageFilter().

template<class TInputImage, class TOutputImage>
typedef SmartPointer<Self> itk::ScalarToArrayCastImageFilter< TInputImage, TOutputImage >::Pointer
 

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 49 of file itkScalarToArrayCastImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef ScalarToArrayCastImageFilter itk::ScalarToArrayCastImageFilter< TInputImage, TOutputImage >::Self
 

Standard class typedefs.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 47 of file itkScalarToArrayCastImageFilter.h.

Referenced by itk::ScalarToArrayCastImageFilter< TInputImage, TOutputImage >::~ScalarToArrayCastImageFilter().

template<class TInputImage, class TOutputImage>
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::ScalarToArrayCastImageFilter< TInputImage, TOutputImage >::Superclass
 

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 48 of file itkScalarToArrayCastImageFilter.h.


Constructor & Destructor Documentation

template<class TInputImage, class TOutputImage>
itk::ScalarToArrayCastImageFilter< TInputImage, TOutputImage >::ScalarToArrayCastImageFilter  )  [protected]
 

template<class TInputImage, class TOutputImage>
virtual itk::ScalarToArrayCastImageFilter< TInputImage, TOutputImage >::~ScalarToArrayCastImageFilter  )  [inline, protected, virtual]
 

Definition at line 62 of file itkScalarToArrayCastImageFilter.h.

References itk::ScalarToArrayCastImageFilter< TInputImage, TOutputImage >::OutputImageRegionType, and itk::ScalarToArrayCastImageFilter< TInputImage, TOutputImage >::Self.


Member Function Documentation

template<class TInputImage, class TOutputImage>
virtual const char* itk::ScalarToArrayCastImageFilter< TInputImage, TOutputImage >::GetClassName  )  const [virtual]
 

Run-time type information (and related methods).

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

template<class TInputImage, class TOutputImage>
Pointer itk::ScalarToArrayCastImageFilter< TInputImage, TOutputImage >::New  )  [static]
 

Standard class macros

Reimplemented from itk::Object.

template<class TInputImage, class TOutputImage>
void itk::ScalarToArrayCastImageFilter< TInputImage, TOutputImage >::ThreadedGenerateData const OutputImageRegionType outputRegionForThread,
int  threadId
[protected, virtual]
 

If an imaging filter can be implemented as a multithreaded algorithm, the filter will provide an implementation of ThreadedGenerateData(). This superclass will automatically split the output image into a number of pieces, spawn multiple threads, and call ThreadedGenerateData() in each thread. Prior to spawning threads, the BeforeThreadedGenerateData() method is called. After all the threads have completed, the AfterThreadedGenerateData() method is called. If an image processing filter cannot support threading, that filter should provide an implementation of the GenerateData() method instead of providing an implementation of ThreadedGenerateData(). If a filter provides a GenerateData() method as its implementation, then the filter is responsible for allocating the output data. If a filter provides a ThreadedGenerateData() method as its implementation, then the output memory will allocated automatically by this superclass. The ThreadedGenerateData() method should only produce the output specified by "outputThreadRegion" parameter. ThreadedGenerateData() cannot write to any other portion of the output image (as this is responsibility of a different thread).

See also:
GenerateData(), SplitRequestedRegion()

Reimplemented from itk::ImageSource< TOutputImage >.


The documentation for this class was generated from the following file:
Generated at Sun Apr 1 02:57:53 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000