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

#include <itkUnaryFunctorVectorImageFilter.h>

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

Detailed Description

template<typename TInputImage, typename TOutputImage, typename TFunction, class TMaskImage = Image<double,3>>
class itk::UnaryFunctorVectorImageFilter< 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.

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 33 of file itkUnaryFunctorVectorImageFilter.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 UnaryFunctorVectorImageFilter Self
 
typedef FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage > Superclass
 
- Public Types inherited from itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >
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
 
virtual const char * GetNameOfClass () const
 
- Public Member Functions inherited from itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
FunctorTypeGetFunctor ()
 
const FunctorTypeGetFunctor () 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::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >
static Pointer New ()
 
- Static Public Member Functions inherited from itk::MaskedImageToImageFilter< TInputImage, TOutputImage, TMaskImage >
static Pointer New ()
 

Protected Member Functions

void BeforeThreadedGenerateData () ITK_OVERRIDE
 
virtual void GenerateOutputInformation () ITK_OVERRIDE
 
void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) ITK_OVERRIDE
 
 UnaryFunctorVectorImageFilter ()
 
virtual ~UnaryFunctorVectorImageFilter ()
 
- Protected Member Functions inherited from itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >
 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 ()
 

Private Member Functions

void operator= (const Self &) ITK_DELETE_FUNCTION
 
 UnaryFunctorVectorImageFilter (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
 
- Protected Attributes inherited from itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >
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
 

Member Typedef Documentation

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

Definition at line 41 of file itkUnaryFunctorVectorImageFilter.h.

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

Some typedefs.

Definition at line 47 of file itkUnaryFunctorVectorImageFilter.h.

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

Definition at line 54 of file itkUnaryFunctorVectorImageFilter.h.

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

Definition at line 55 of file itkUnaryFunctorVectorImageFilter.h.

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

Definition at line 58 of file itkUnaryFunctorVectorImageFilter.h.

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

Definition at line 53 of file itkUnaryFunctorVectorImageFilter.h.

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

Definition at line 59 of file itkUnaryFunctorVectorImageFilter.h.

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

Definition at line 56 of file itkUnaryFunctorVectorImageFilter.h.

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

Definition at line 57 of file itkUnaryFunctorVectorImageFilter.h.

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

Definition at line 52 of file itkUnaryFunctorVectorImageFilter.h.

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

Definition at line 69 of file itkUnaryFunctorVectorImageFilter.h.

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

Definition at line 63 of file itkUnaryFunctorVectorImageFilter.h.

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

Definition at line 66 of file itkUnaryFunctorVectorImageFilter.h.

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

Definition at line 62 of file itkUnaryFunctorVectorImageFilter.h.

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

Definition at line 67 of file itkUnaryFunctorVectorImageFilter.h.

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

Definition at line 64 of file itkUnaryFunctorVectorImageFilter.h.

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

Definition at line 65 of file itkUnaryFunctorVectorImageFilter.h.

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

Definition at line 61 of file itkUnaryFunctorVectorImageFilter.h.

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

Definition at line 40 of file itkUnaryFunctorVectorImageFilter.h.

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

Standard class typedefs.

Definition at line 38 of file itkUnaryFunctorVectorImageFilter.h.

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

Definition at line 39 of file itkUnaryFunctorVectorImageFilter.h.

Constructor & Destructor Documentation

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

Definition at line 73 of file itkUnaryFunctorVectorImageFilter.h.

References ITK_DELETE_FUNCTION, and ITK_OVERRIDE.

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

Member Function Documentation

template<typename TInputImage , typename TOutputImage , typename TFunction , class TMaskImage >
void itk::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::BeforeThreadedGenerateData ( )
protected
template<typename TInputImage , typename TOutputImage , typename TFunction , class TMaskImage = Image<double,3>>
virtual::itk::LightObject::Pointer itk::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::CreateAnother ( void  ) const
template<typename TInputImage , typename TOutputImage , typename TFunction , class TMaskImage >
void itk::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::GenerateOutputInformation ( void  )
protectedvirtual

UnaryFunctorVectorImageFilter can produce an image which is a different resolution than its input image. As such, UnaryFunctorVectorImageFilter needs to provide an implementation for GenerateOutputInformation() in order to inform the pipeline execution model. The original documentation of this method is below.

See also
ProcessObject::GenerateOutputInformaton()

Definition at line 33 of file itkUnaryFunctorVectorImageFilter.hxx.

References itk::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::BeforeThreadedGenerateData(), itk::CopyImageInformation(), itk::GetVectorImageVectorSize(), LOG_DEBUG, itk::SetVectorImageVectorSize(), utlException, utlSAException, and utlVLogPosition.

Referenced by itk::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::UnaryFunctorVectorImageFilter().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<typename TInputImage , typename TOutputImage , typename TFunction , class TMaskImage = Image<double,3>>
virtual const char* itk::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::FunctorBaseVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >.

template<typename TInputImage , typename TOutputImage , typename TFunction , class TMaskImage = Image<double,3>>
static Pointer itk::UnaryFunctorVectorImageFilter< 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::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::operator= ( const Self )
private
template<typename TInputImage , typename TOutputImage , typename TFunction , class TMaskImage >
void itk::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::ThreadedGenerateData ( const OutputImageRegionType outputRegionForThread,
ThreadIdType  threadId 
)
protected

UnaryFunctorVectorImageFilter can be implemented as a multithreaded filter. Therefore, this implementation provides a ThreadedGenerateData() routine which is called for each processing thread. The output image data is allocated automatically by the superclass prior to calling ThreadedGenerateData(). ThreadedGenerateData can only write to the portion of the output image specified by the parameter "outputRegionForThread"

See also
ImageToImageFilter::ThreadedGenerateData(), ImageToImageFilter::GenerateData()

ThreadedGenerateData Performs the pixel-wise addition

Definition at line 82 of file itkUnaryFunctorVectorImageFilter.hxx.

References itk::CopyImageRegion(), itk::VectorImageRegionIteratorWithIndex< TImage >::GetVector(), itk::GetVectorImageVectorSize(), utl::IsLogDebug(), itkShowPositionThreadedLogger, itk::PrintVariableLengthVector(), itk::VectorImageRegionIteratorWithIndex< TImage >::SetVector(), utlSAGlobalException, utl::UtlVectorToVariableLengthVector(), and utl::VariableLengthVectorToUtlVector().

Referenced by itk::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction, TMaskImage >::BeforeThreadedGenerateData().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


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