ITK
4.4.0
Insight Segmentation and Registration Toolkit
|
#include <itkCastImageFilter.h>
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 97 of file itkCastImageFilter.h.
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Cast< TInputImage::PixelType, TOutputImage::PixelType > > | |
static Pointer | New () |
Private Member Functions | |
CastImageFilter (const Self &) | |
void | operator= (const Self &) |
typedef SmartPointer< const Self > itk::CastImageFilter< TInputImage, TOutputImage >::ConstPointer |
Definition at line 113 of file itkCastImageFilter.h.
typedef Superclass::OutputImageRegionType itk::CastImageFilter< TInputImage, TOutputImage >::OutputImageRegionType |
Definition at line 116 of file itkCastImageFilter.h.
typedef SmartPointer< Self > itk::CastImageFilter< TInputImage, TOutputImage >::Pointer |
Definition at line 112 of file itkCastImageFilter.h.
typedef CastImageFilter itk::CastImageFilter< TInputImage, TOutputImage >::Self |
Standard class typedefs.
Definition at line 105 of file itkCastImageFilter.h.
typedef UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Cast< typename TInputImage::PixelType, typename TOutputImage::PixelType > > itk::CastImageFilter< TInputImage, TOutputImage >::Superclass |
Definition at line 110 of file itkCastImageFilter.h.
|
protected |
End concept checking
|
private |
|
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::Object.
|
protectedvirtual |
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 >.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Cast< TInputImage::PixelType, TOutputImage::PixelType > >.
|
static |
Method for creation through the object factory.
Referenced by itk::CannySegmentationLevelSetFunction< TImageType, TFeatureImageType >::CannySegmentationLevelSetFunction().
|
private |
|
protectedvirtual |
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).
Reimplemented from itk::ImageSource< TOutputImage >.
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 > )