ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkCastImageFilter.h>
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef CastImageFilter | Self |
typedef UnaryFunctorImageFilter < TInputImage, TOutputImage, Functor::Cast< typename TInputImage::PixelType, typename TOutputImage::PixelType > > | Superclass |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
typedef (Concept::Convertible< typename TInputImage::PixelType, typename TOutputImage::PixelType >) InputConvertibleToOutputCheck | |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
void | GenerateData () |
CastImageFilter () | |
virtual | ~CastImageFilter () |
Private Member Functions | |
CastImageFilter (const Self &) | |
void | operator= (const Self &) |
Casts input pixels to output pixel type.
This filter is templated over the input image type and the output image type.
A typical use is to cast a
to a
This filter can also be used to cast a
to a
If you need to perform a dimensionaly reduction, you may want to use the ExtractImageFilter instead of the CastImageFilter.
Definition at line 89 of file itkCastImageFilter.h.
typedef SmartPointer< const Self > itk::CastImageFilter< TInputImage, TOutputImage >::ConstPointer |
Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Cast< TInputImage::PixelType, TOutputImage::PixelType > >.
Definition at line 106 of file itkCastImageFilter.h.
typedef SmartPointer< Self > itk::CastImageFilter< TInputImage, TOutputImage >::Pointer |
Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Cast< TInputImage::PixelType, TOutputImage::PixelType > >.
Definition at line 105 of file itkCastImageFilter.h.
typedef CastImageFilter itk::CastImageFilter< TInputImage, TOutputImage >::Self |
Standard class typedefs.
Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Cast< TInputImage::PixelType, TOutputImage::PixelType > >.
Definition at line 98 of file itkCastImageFilter.h.
typedef UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Cast< typename TInputImage::PixelType, typename TOutputImage::PixelType > > itk::CastImageFilter< TInputImage, TOutputImage >::Superclass |
Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Cast< TInputImage::PixelType, TOutputImage::PixelType > >.
Definition at line 103 of file itkCastImageFilter.h.
itk::CastImageFilter< TInputImage, TOutputImage >::CastImageFilter | ( | ) | [inline, protected] |
End concept checking
Definition at line 123 of file itkCastImageFilter.h.
virtual itk::CastImageFilter< TInputImage, TOutputImage >::~CastImageFilter | ( | ) | [inline, protected, virtual] |
End concept checking
Definition at line 124 of file itkCastImageFilter.h.
itk::CastImageFilter< TInputImage, TOutputImage >::CastImageFilter | ( | const Self & | ) | [private] |
virtual::itk::LightObject::Pointer itk::CastImageFilter< TInputImage, TOutputImage >::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::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Cast< TInputImage::PixelType, TOutputImage::PixelType > >.
void itk::CastImageFilter< TInputImage, TOutputImage >::GenerateData | ( | ) | [inline, 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.
Reimplemented from itk::ImageSource< TOutputImage >.
Definition at line 127 of file itkCastImageFilter.h.
virtual const char* itk::CastImageFilter< TInputImage, TOutputImage >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Cast< TInputImage::PixelType, TOutputImage::PixelType > >.
static Pointer itk::CastImageFilter< TInputImage, TOutputImage >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Cast< TInputImage::PixelType, TOutputImage::PixelType > >.
void itk::CastImageFilter< TInputImage, TOutputImage >::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::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Cast< TInputImage::PixelType, TOutputImage::PixelType > >.
itk::CastImageFilter< TInputImage, TOutputImage >::typedef | ( | Concept::Convertible< typename TInputImage::PixelType, typename TOutputImage::PixelType > | ) |
Begin concept checking This class requires InputConvertibleToOutputCheck in the form of ( Concept::Convertible< typename TInputImage::PixelType, typename TOutputImage::PixelType > )