Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::DiffusionImageCorrectionFilter Class Reference

#include <mitkDiffusionImageCorrectionFilter.h>

Inheritance diagram for mitk::DiffusionImageCorrectionFilter:
Collaboration diagram for mitk::DiffusionImageCorrectionFilter:

Public Types

typedef vnl_vector_fixed< double, 3 > GradientDirectionType
 
typedef vnl_matrix_fixed< double, 3, 3 > TransformMatrixType
 
typedef itk::VectorContainer< unsigned int, GradientDirectionTypeGradientDirectionContainerType
 
typedef GradientDirectionContainerType::Pointer GradientDirectionContainerPointerType
 
typedef std::vector< TransformMatrixTypeTransformsVectorType
 
typedef Superclass::OutputType DiffusionImageType
 
typedef DiffusionImageType::Pointer DiffusionImageTypePointer
 
typedef itk::VectorImage< DiffusionPixelType, 3 > ImageType
 
- Public Types inherited from mitk::ImageSource
typedef ImageSource Self
 
typedef BaseDataSource Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef mitk::Image OutputImageType
 Some convenient typedefs. More...
 
typedef OutputImageType OutputType
 
typedef OutputImageType::Pointer OutputImagePointer
 
typedef SlicedData::RegionType OutputImageRegionType
 
- Public Types inherited from mitk::BaseDataSource
typedef BaseDataSource Self
 
typedef itk::ProcessObject Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef BaseData OutputType
 
typedef itk::DataObject::DataObjectIdentifierType DataObjectIdentifierType
 

Public Member Functions

 mitkClassMacro (DiffusionImageCorrectionFilter, ImageSource) itkSimpleNewMacro(Self) typedef short DiffusionPixelType
 
void SetImage (DiffusionImageTypePointer input)
 Set the mitk image ( a 3d+t image ) which is to be reinterpreted as dw image. More...
 
void CorrectDirections (const TransformsVectorType &)
 Correct each gradient direction according to the given transform. More...
 
void CorrectDirections (const TransformMatrixType &)
 Correct all gradient directions according to the given transform. More...
 
virtual void GenerateOutputInformation () override
 
- Public Member Functions inherited from mitk::ImageSource
virtual std::vector< std::string > GetClassHierarchy () const override
 
virtual const char * GetClassName () const
 
Pointer Clone () const
 
OutputTypeGetOutput ()
 Get the output data of this image source object. More...
 
const OutputTypeGetOutput () const
 
OutputTypeGetOutput (DataObjectPointerArraySizeType idx)
 
const OutputTypeGetOutput (DataObjectPointerArraySizeType idx) const
 
virtual itk::DataObject::Pointer MakeOutput (DataObjectPointerArraySizeType idx) override
 Make a DataObject of the correct type to used as the specified output. More...
 
virtual itk::DataObject::Pointer MakeOutput (const DataObjectIdentifierType &name) override
 
virtual vtkImageData * GetVtkImageData ()
 
virtual const vtkImageData * GetVtkImageData () const
 
- Public Member Functions inherited from mitk::BaseDataSource
OutputTypeGetOutput ()
 
const OutputTypeGetOutput () const
 
OutputTypeGetOutput (DataObjectPointerArraySizeType idx)
 
const OutputTypeGetOutput (DataObjectPointerArraySizeType idx) const
 
virtual void GraftOutput (OutputType *output)
 Graft the specified BaseData onto this BaseDataSource's output. More...
 
virtual void GraftOutput (const DataObjectIdentifierType &key, OutputType *output)
 
virtual void GraftNthOutput (unsigned int idx, OutputType *output)
 Graft the specified base data object onto this BaseDataSource's idx'th output. More...
 
bool Updating () const
 Access itk::ProcessObject::m_Updating. More...
 

Protected Member Functions

 DiffusionImageCorrectionFilter ()
 
virtual ~DiffusionImageCorrectionFilter ()
 
TransformMatrixType GetRotationComponent (const TransformMatrixType &)
 Get the rotation component following the Finite Strain. More...
 
- Protected Member Functions inherited from mitk::ImageSource
 ImageSource ()
 
virtual ~ImageSource ()
 
virtual void GenerateData () override
 A version of GenerateData() specific for image processing filters. More...
 
virtual void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, itk::ThreadIdType threadId)
 If an imaging filter can be implemented as a multithreaded algorithm, the filter will provide an implementation of ThreadedGenerateData(). More...
 
virtual void PrepareOutputs () override
 This method is intentionally left blank. More...
 
virtual void AllocateOutputs ()
 The GenerateData method normally allocates the buffers for all of the outputs of a filter. More...
 
virtual void BeforeThreadedGenerateData ()
 If an imaging filter needs to perform processing after the buffer has been allocated but before threads are spawned, the filter can can provide an implementation for BeforeThreadedGenerateData(). More...
 
virtual void AfterThreadedGenerateData ()
 If an imaging filter needs to perform processing after all processing threads have completed, the filter can can provide an implementation for AfterThreadedGenerateData(). More...
 
virtual unsigned int SplitRequestedRegion (unsigned int i, unsigned int num, OutputImageRegionType &splitRegion)
 Split the output's RequestedRegion into "num" pieces, returning region "i" as "splitRegion". More...
 
- Protected Member Functions inherited from mitk::BaseDataSource
 BaseDataSource ()
 
virtual ~BaseDataSource ()
 

Protected Attributes

DiffusionImageTypePointer m_SourceImage
 

Additional Inherited Members

- Static Public Member Functions inherited from mitk::ImageSource
static const char * GetStaticNameOfClass ()
 
static Pointer New ()
 Method for creation through the object factory. More...
 
- Static Public Member Functions inherited from mitk::BaseDataSource
static const char * GetStaticNameOfClass ()
 
- Static Protected Member Functions inherited from mitk::ImageSource
static ITK_THREAD_RETURN_TYPE ThreaderCallback (void *arg)
 Static function used as a "callback" by the MultiThreader. More...
 
- Static Protected Member Functions inherited from mitk::BaseDataSource
static Pointer New ()
 

Detailed Description

Definition at line 28 of file mitkDiffusionImageCorrectionFilter.h.

Member Typedef Documentation

Definition at line 47 of file mitkDiffusionImageCorrectionFilter.h.

typedef GradientDirectionContainerType::Pointer mitk::DiffusionImageCorrectionFilter::GradientDirectionContainerPointerType

Definition at line 43 of file mitkDiffusionImageCorrectionFilter.h.

typedef vnl_vector_fixed< double, 3 > mitk::DiffusionImageCorrectionFilter::GradientDirectionType

Definition at line 39 of file mitkDiffusionImageCorrectionFilter.h.

typedef vnl_matrix_fixed< double, 3, 3 > mitk::DiffusionImageCorrectionFilter::TransformMatrixType

Definition at line 40 of file mitkDiffusionImageCorrectionFilter.h.

Constructor & Destructor Documentation

mitk::DiffusionImageCorrectionFilter::DiffusionImageCorrectionFilter ( )
protected

Definition at line 28 of file mitkDiffusionImageCorrectionFilter.cpp.

virtual mitk::DiffusionImageCorrectionFilter::~DiffusionImageCorrectionFilter ( )
inlineprotectedvirtual

Definition at line 79 of file mitkDiffusionImageCorrectionFilter.h.

Member Function Documentation

void mitk::DiffusionImageCorrectionFilter::CorrectDirections ( const TransformsVectorType transformations)

Correct each gradient direction according to the given transform.

The size of the input is expected to correspond to the count of gradient images in the image.

Definition at line 67 of file mitkDiffusionImageCorrectionFilter.cpp.

References mitk::DiffusionPropertyHelper::GRADIENTCONTAINERPROPERTYNAME, mitkThrow, and mitk::New().

void mitk::DiffusionImageCorrectionFilter::CorrectDirections ( const TransformMatrixType transformation)

Correct all gradient directions according to the given transform.

This will apply the same rotation to all directions.

Definition at line 103 of file mitkDiffusionImageCorrectionFilter.cpp.

References mitk::DiffusionPropertyHelper::GRADIENTCONTAINERPROPERTYNAME, and mitkThrow.

virtual void mitk::DiffusionImageCorrectionFilter::GenerateOutputInformation ( void  )
inlineoverridevirtual

Definition at line 74 of file mitkDiffusionImageCorrectionFilter.h.

mitk::DiffusionImageCorrectionFilter::TransformMatrixType mitk::DiffusionImageCorrectionFilter::GetRotationComponent ( const TransformMatrixType A)
protected

Get the rotation component following the Finite Strain.

For a given transformation \(A\) its rotation component is defined as \( (AA^{T})^{-1/2}\).

The computation first computes \( B = AA^T \) and then estimates the square root. Square root of diagonal matrices is defined as \( S = Q * \sqrt{C} * Q^{-1} \) with \( C \) having the eigenvalues on the diagonal.

Definition at line 36 of file mitkDiffusionImageCorrectionFilter.cpp.

mitk::DiffusionImageCorrectionFilter::mitkClassMacro ( DiffusionImageCorrectionFilter  ,
ImageSource   
)

class macros

void mitk::DiffusionImageCorrectionFilter::SetImage ( DiffusionImageTypePointer  input)
inline

Set the mitk image ( a 3d+t image ) which is to be reinterpreted as dw image.

Parameters
mitkImage

Definition at line 55 of file mitkDiffusionImageCorrectionFilter.h.

Member Data Documentation

DiffusionImageTypePointer mitk::DiffusionImageCorrectionFilter::m_SourceImage
protected

Definition at line 93 of file mitkDiffusionImageCorrectionFilter.h.


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