Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType > Class Template Reference

Splits a DW-Image passed in as input into a 3D-t image where each volume coresponds to a gradient image ( or the unweighted b0 ) More...

#include <itkSplitDWImageFilter.h>

Inheritance diagram for itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >:
Collaboration diagram for itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >:

Public Types

typedef SplitDWImageFilter Self
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef TInputImagePixelType InputPixelType
 
typedef TOutputImagePixelType OutputPixelType
 
typedef ImageToImageFilter< VectorImage< TInputImagePixelType, 3 >, Image< TOutputImagePixelType, 4 > > Superclass
 
typedef Superclass::InputImageType InputImageType
 
typedef Image< TOutputImagePixelType, 4 > OutputImageType
 
typedef OutputImageType::RegionType OutputImageRegionType
 
typedef std::vector< unsigned int > IndexListType
 
typedef std::map< unsigned int, IndexListTypeBValueMapType
 

Public Member Functions

Pointer Clone () const
 
virtual const char * GetClassName () const
 
void SetExtractIndices (IndexListType list)
 Set the indices of the images to be extracted. More...
 
void SetExtractAll ()
 Extract all images. More...
 
void SetExtractAllAboveThreshold (double b_threshold, BValueMapType map)
 Selects only the weighted images with b-value above the given b_threshold to be extracted. More...
 
void SetExtractSingleShell (double b_value, BValueMapType map, double tol)
 SetExtractSingleShell. More...
 
const IndexListType GetIndexList () const
 Returns the index list used for extraction. More...
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 SplitDWImageFilter ()
 
virtual ~SplitDWImageFilter ()
 
void GenerateData ()
 
virtual void CopyInformation (const DataObject *data)
 
virtual void GenerateOutputInformation ()
 

Protected Attributes

IndexListType m_IndexList
 
bool m_ExtractAllImages
 

Detailed Description

template<class TInputImagePixelType, class TOutputImagePixelType>
class itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >

Splits a DW-Image passed in as input into a 3D-t image where each volume coresponds to a gradient image ( or the unweighted b0 )

Several applications require to get the gradient images as a separate volume, f.e. the registration for head-motion correction. Also a reduction of the DW Image is possible when combined with its counterpart filter, the

See also
mitkImageToDiffusionImageSource, which can reinterpret a 3d+t (scalar) image into a diffusion weighted image.

Definition at line 38 of file itkSplitDWImageFilter.h.

Member Typedef Documentation

template<class TInputImagePixelType , class TOutputImagePixelType >
typedef std::map< unsigned int, IndexListType> itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::BValueMapType

Definition at line 61 of file itkSplitDWImageFilter.h.

template<class TInputImagePixelType , class TOutputImagePixelType >
typedef SmartPointer<const Self> itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::ConstPointer

Definition at line 46 of file itkSplitDWImageFilter.h.

template<class TInputImagePixelType , class TOutputImagePixelType >
typedef std::vector< unsigned int > itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::IndexListType

Definition at line 60 of file itkSplitDWImageFilter.h.

template<class TInputImagePixelType , class TOutputImagePixelType >
typedef Superclass::InputImageType itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::InputImageType

typedefs from superclass

Definition at line 55 of file itkSplitDWImageFilter.h.

template<class TInputImagePixelType , class TOutputImagePixelType >
typedef TInputImagePixelType itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::InputPixelType

Definition at line 48 of file itkSplitDWImageFilter.h.

template<class TInputImagePixelType , class TOutputImagePixelType >
typedef OutputImageType::RegionType itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::OutputImageRegionType

Definition at line 58 of file itkSplitDWImageFilter.h.

template<class TInputImagePixelType , class TOutputImagePixelType >
typedef Image< TOutputImagePixelType, 4 > itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::OutputImageType

Definition at line 57 of file itkSplitDWImageFilter.h.

template<class TInputImagePixelType , class TOutputImagePixelType >
typedef TOutputImagePixelType itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::OutputPixelType

Definition at line 49 of file itkSplitDWImageFilter.h.

template<class TInputImagePixelType , class TOutputImagePixelType >
typedef SmartPointer<Self> itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::Pointer

Definition at line 45 of file itkSplitDWImageFilter.h.

template<class TInputImagePixelType , class TOutputImagePixelType >
typedef SplitDWImageFilter itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::Self

Definition at line 44 of file itkSplitDWImageFilter.h.

template<class TInputImagePixelType , class TOutputImagePixelType >
typedef ImageToImageFilter< VectorImage<TInputImagePixelType, 3>, Image< TOutputImagePixelType, 4 > > itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::Superclass

Definition at line 52 of file itkSplitDWImageFilter.h.

Constructor & Destructor Documentation

template<class TInputImagePixelType , class TOutputImagePixelType >
itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::SplitDWImageFilter ( )
protected
template<class TInputImagePixelType , class TOutputImagePixelType >
virtual itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::~SplitDWImageFilter ( )
inlineprotectedvirtual

Definition at line 127 of file itkSplitDWImageFilter.h.

Member Function Documentation

template<class TInputImagePixelType , class TOutputImagePixelType >
Pointer itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::Clone ( ) const
template<class TInputImagePixelType , class TOutputImagePixelType >
virtual void itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::CopyInformation ( const DataObject *  data)
protectedvirtual

The dimension of the output does not match the dimension of the input hence we need to re-implement the CopyInformation method to avoid executing the default implementation which tries to copy the input information to the output

template<class TInputImagePixelType , class TOutputImagePixelType >
void itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::GenerateData ( )
protected
template<class TInputImagePixelType , class TOutputImagePixelType >
virtual void itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::GenerateOutputInformation ( )
protectedvirtual

Override of the ProcessObject::GenerateOutputInformation() because of different dimensionality of the input and the output

template<class TInputImagePixelType , class TOutputImagePixelType >
virtual const char* itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::GetClassName ( ) const
virtual

Runtime information support.

template<class TInputImagePixelType , class TOutputImagePixelType >
const IndexListType itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::GetIndexList ( ) const
inline

Returns the index list used for extraction.

The list is necessary for further processing, especially when a b-value threshold is used ( like in

See also
SetExtractAllAboveThreshold )
Returns
The index list used during the extraction

Definition at line 119 of file itkSplitDWImageFilter.h.

References itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::m_IndexList.

template<class TInputImagePixelType , class TOutputImagePixelType >
static Pointer itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::New ( )
static

Method for creation through the object factory.

template<class TInputImagePixelType , class TOutputImagePixelType >
void itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::SetExtractAll ( )
inline

Extract all images.

The same as setting SetExtractIndices( ) with [0,1,2,...,N]

Definition at line 85 of file itkSplitDWImageFilter.h.

References itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::m_ExtractAllImages.

template<class TInputImagePixelType , class TOutputImagePixelType >
void itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::SetExtractAllAboveThreshold ( double  b_threshold,
BValueMapType  map 
)

Selects only the weighted images with b-value above the given b_threshold to be extracted.

Setting b_threshold to 0 will do the same as

See also
SetExtractAll. Please note that some images have no true unweighted images as the minimal b-value is something like 5 so for extracting all.
Note
It will reorder the images!
Parameters
b_thresholdthe minimal b-value to be extracted
mapthe map with b-values to the corresponding image
See also
GetIndexList
template<class TInputImagePixelType , class TOutputImagePixelType >
void itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::SetExtractIndices ( IndexListType  list)
inline

Set the indices of the images to be extracted.

Definition at line 75 of file itkSplitDWImageFilter.h.

References itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::m_IndexList.

template<class TInputImagePixelType , class TOutputImagePixelType >
void itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::SetExtractSingleShell ( double  b_value,
BValueMapType  map,
double  tol 
)

SetExtractSingleShell.

Parameters
b_valueb-value of the shell to be extracted
tolthe tolerance of the shell choice, i.e. all shells within [ b_value - tol, b_value + tol ] will be extracted

Member Data Documentation

template<class TInputImagePixelType , class TOutputImagePixelType >
bool itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::m_ExtractAllImages
protected
template<class TInputImagePixelType , class TOutputImagePixelType >
IndexListType itk::SplitDWImageFilter< TInputImagePixelType, TOutputImagePixelType >::m_IndexList
protected

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