DMRITool  v0.1.1-139-g860d86b4
Diffusion MRI Tool
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage > Class Template Reference

#include <itkFunctorBaseVectorImageFilter.h>

+ Inheritance diagram for itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >:
+ Collaboration diagram for itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >:

Detailed Description

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
class itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >

Implements vector-valued generic operation on one image.

Calculation loops over image domain and extracts vectors along x/y/z/t-axis.

Mask can be a 3D image, or 4D image.

m_Functor is a functor with utl::Vector as input and utl::Vector as output. m_Functor needs to define GetOutputDimension to obtain the NumberOfComponentsPerPixel in output image.

Author
Jian Cheng

Definition at line 37 of file itkFunctorBaseVectorImageFilter.h.

Public Types

typedef SmartPointer< const SelfConstPointer
 
typedef TFunction FunctorType
 
typedef InputImageType::ConstPointer InputImageConstPointer
 
typedef InputImageType::IndexType InputImageIndexType
 
typedef InputImageType::PixelType InputImagePixelType
 
typedef InputImageType::Pointer InputImagePointer
 
typedef InputImageType::RegionType InputImageRegionType
 
typedef InputImageType::SizeType InputImageSizeType
 
typedef InputImageType::SpacingType InputImageSpacingType
 
typedef TInputImage InputImageType
 
typedef Superclass::MaskImageType MaskImageType
 
typedef OutputImageType::IndexType OutputImageIndexType
 
typedef OutputImageType::PixelType OutputImagePixelType
 
typedef OutputImageType::Pointer OutputImagePointer
 
typedef OutputImageType::RegionType OutputImageRegionType
 
typedef OutputImageType::SizeType OutputImageSizeType
 
typedef OutputImageType::SpacingType OutputImageSpacingType
 
typedef TOutputImage OutputImageType
 
typedef SmartPointer< SelfPointer
 
typedef FunctorBaseVectorImageFilter Self
 
typedef MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage > Superclass
 
- Public Types inherited from itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >
typedef SmartPointer< const SelfConstPointer
 
typedef InputImageType::ConstPointer InputImageConstPointer
 
typedef InputImageType::IndexType InputImageIndexType
 
typedef InputImageType::PixelType InputImagePixelType
 
typedef InputImageType::Pointer InputImagePointer
 
typedef InputImageType::RegionType InputImageRegionType
 
typedef InputImageType::SizeType InputImageSizeType
 
typedef InputImageType::SpacingType InputImageSpacingType
 
typedef TInputImage InputImageType
 
typedef LoggerType::Pointer LoggerPointer
 
typedef ThreadLogger LoggerType
 
typedef utl_shared_ptr< LoggerVectorTypeLoggerVectorPointer
 
typedef std::vector< LoggerPointerLoggerVectorType
 
typedef MaskImageType::Pointer MaskImagePointer
 
typedef TMaskImage MaskImageType
 
typedef OutputImageType::IndexType OutputImageIndexType
 
typedef OutputImageType::PixelType OutputImagePixelType
 
typedef OutputImageType::Pointer OutputImagePointer
 
typedef OutputImageType::RegionType OutputImageRegionType
 
typedef OutputImageType::SizeType OutputImageSizeType
 
typedef OutputImageType::SpacingType OutputImageSpacingType
 
typedef TOutputImage OutputImageType
 
typedef SmartPointer< SelfPointer
 
typedef MaskedImageToImageFilter Self
 
typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
FunctorTypeGetFunctor ()
 
const FunctorTypeGetFunctor () const
 
virtual const char * GetNameOfClass () const
 
 itkSetGetMacro (VectorAxis, int)
 
void SetFunctor (const FunctorType &functor)
 
- Public Member Functions inherited from itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const LoggerTypeGetLogger () const
 
virtual const MaskImageTypeGetMaskImage () const
 
bool IsMaskUsed ()
 
 itkGetObjectMacro (MaskImage, MaskImageType)
 
 itkGetObjectMacro (Logger, LoggerType)
 
 itkSetGetMacro (LogLevel, int)
 
virtual void SetLogger (LoggerType *_arg)
 
virtual void SetMaskImage (MaskImageType *_arg)
 
void SetMaskImage (const std::string &file)
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >
static Pointer New ()
 

Protected Member Functions

 FunctorBaseVectorImageFilter ()
 
LightObject::Pointer InternalClone () const ITK_OVERRIDE
 
void PrintSelf (std::ostream &os, Indent indent) const ITK_OVERRIDE
 
virtual ~FunctorBaseVectorImageFilter ()
 
- Protected Member Functions inherited from itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >
void CreateLoggerVector ()
 
virtual void InitializeThreadedLibraries ()
 
LightObject::Pointer InternalClone () const ITK_OVERRIDE
 
 MaskedImageToImageFilter ()
 
std::string ThreadIDToString () const
 
virtual void VerifyInputParameters () const
 
virtual void VerifyMaskInformation () const
 
void WriteLogger (const std::string &str, const LoggerBase::PriorityLevelType level=LoggerBase::DEBUG) const
 
virtual ~MaskedImageToImageFilter ()
 

Protected Attributes

FunctorType m_Functor
 
int m_VectorAxis =3
 
- Protected Attributes inherited from itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >
LoggerPointer m_Logger
 
LoggerVectorPointer m_LoggerVector
 
int m_LogLevel
 
MaskImagePointer m_MaskImage
 
int m_ThreadID
 

Private Member Functions

 FunctorBaseVectorImageFilter (const Self &) ITK_DELETE_FUNCTION
 
void operator= (const Self &) ITK_DELETE_FUNCTION
 

Additional Inherited Members

- Static Public Attributes inherited from itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >
static const unsigned int InputImageDimension = TInputImage::ImageDimension
 
static const unsigned int OutputImageDimension = TOutputImage::ImageDimension
 

Member Typedef Documentation

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
typedef SmartPointer< const Self > itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::ConstPointer

Definition at line 45 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
typedef TFunction itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::FunctorType

Some typedefs.

Definition at line 51 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
typedef InputImageType::ConstPointer itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::InputImageConstPointer

Definition at line 58 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
typedef InputImageType::IndexType itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::InputImageIndexType

Definition at line 59 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
typedef InputImageType::PixelType itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::InputImagePixelType

Definition at line 62 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
typedef InputImageType::Pointer itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::InputImagePointer

Definition at line 57 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
typedef InputImageType::RegionType itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::InputImageRegionType

Definition at line 63 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
typedef InputImageType::SizeType itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::InputImageSizeType

Definition at line 60 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
typedef InputImageType::SpacingType itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::InputImageSpacingType

Definition at line 61 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
typedef TInputImage itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::InputImageType

Definition at line 56 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
typedef Superclass::MaskImageType itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::MaskImageType

Definition at line 73 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
typedef OutputImageType::IndexType itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::OutputImageIndexType

Definition at line 67 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
typedef OutputImageType::PixelType itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::OutputImagePixelType

Definition at line 70 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
typedef OutputImageType::Pointer itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::OutputImagePointer

Definition at line 66 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
typedef OutputImageType::RegionType itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::OutputImageRegionType

Definition at line 71 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
typedef OutputImageType::SizeType itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::OutputImageSizeType

Definition at line 68 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
typedef OutputImageType::SpacingType itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::OutputImageSpacingType

Definition at line 69 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
typedef TOutputImage itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::OutputImageType

Definition at line 65 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
typedef SmartPointer< Self > itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::Pointer

Definition at line 44 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
typedef FunctorBaseVectorImageFilter itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::Self

Standard class typedefs.

Definition at line 42 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
typedef MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage > itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::Superclass

Definition at line 43 of file itkFunctorBaseVectorImageFilter.h.

Constructor & Destructor Documentation

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::FunctorBaseVectorImageFilter ( )
inlineprotected

Definition at line 100 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
virtual itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::~FunctorBaseVectorImageFilter ( )
inlineprotectedvirtual

Definition at line 104 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::FunctorBaseVectorImageFilter ( const Self )
private

Member Function Documentation

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
virtual::itk::LightObject::Pointer itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::CreateAnother ( void  ) const
template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
FunctorType& itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::GetFunctor ( )
inline

Get the functor object. The functor is returned by reference. (Functors do not have to derive from itk::LightObject, so they do not necessarily have a reference count. So we cannot return a SmartPointer.)

Definition at line 81 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
const FunctorType& itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::GetFunctor ( ) const
inline

Definition at line 82 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
virtual const char* itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::GetNameOfClass ( ) const
virtual
template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
LightObject::Pointer itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::InternalClone ( ) const
inlineprotected

Definition at line 116 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::itkSetGetMacro ( VectorAxis  ,
int   
)
template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
static Pointer itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::New ( )
static

Method for creation through the object factory.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
void itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::operator= ( const Self )
private
template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
void itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
inlineprotectedvirtual
template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
void itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::SetFunctor ( const FunctorType functor)
inline

Set the functor object. This replaces the current Functor with a copy of the specified Functor. This allows the user to specify a functor that has ivars set differently than the default functor. This method requires an operator!=() be defined on the functor (or the compiler's default implementation of operator!=() being appropriate).

Definition at line 90 of file itkFunctorBaseVectorImageFilter.h.

Member Data Documentation

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
FunctorType itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::m_Functor
protected

Functor work on utl::Vector

Definition at line 131 of file itkFunctorBaseVectorImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
int itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::m_VectorAxis =3
protected

vector axis. 0/1/2/3 means x/y/z/t-axis

Definition at line 134 of file itkFunctorBaseVectorImageFilter.h.


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