|
DMRITool
v0.1.1-139-g860d86b4
Diffusion MRI Tool
|
#include <itkDWIReader.h>
Inheritance diagram for itk::DWIReader< TPixelType, VImageDimension >:
Collaboration diagram for itk::DWIReader< TPixelType, VImageDimension >:Load gradient file, b values and DWI files (with optional index file)
The data format has two types:
******in data.txt******************* 650 grad1.txt dwi1.nii index1.txt 1500 grad2.txt dwi2.nii index2.txt 3000 grad3.txt dwi3.nii index3.txt
Each line is for a single shell data. If the dimension N in grad.txt is smaller than the dimension M in dwi.nii, the first M-N dimension in dwi.hpp is for b0 image index.txt (optional) shows the index requested for reading. dwi.hdr can be stored as VectorImage or Image
******in data.txt********************* b1.txt grad1.txt dwi1.nii index1.txt b2.txt grad2.txt dwi2.nii index2.txt b3.txt grad3.txt dwi3.nii index3.txt
b.txt and grad.txt should have the same dimension
Definition at line 59 of file itkDWIReader.h.
Public Types | |
| typedef B0ImageType::DirectionType | B0DirectionType |
| typedef Image< TPixelType, VImageDimension > | B0ImageType |
| typedef B0ImageType::IndexType | B0IndexType |
| typedef B0ImageType::PixelType | B0PixelType |
| typedef B0ImageType::RegionType | B0RegionType |
| typedef B0ImageType::SizeType | B0SizeType |
| typedef B0ImageType::SpacingType | B0SpacingType |
| typedef DWIImageType::DirectionType | DirectionType |
| typedef VectorImage< TPixelType, VImageDimension > | DWIImageType |
| typedef DWIImageType::IndexType | IndexType |
| typedef Image< double, VImageDimension > | MaskImageType |
| typedef utl_shared_ptr< MatrixType > | MatrixPointer |
| typedef utl::NDArray< double, 2 > | MatrixType |
| typedef DWIImageType::PixelType | PixelType |
| typedef SmartPointer< Self > | Pointer |
| typedef DWIImageType::RegionType | RegionType |
| typedef SamplingSchemeQSpaceType::Pointer | SamplingSchemeQSpacePointer |
| typedef SamplingSchemeQSpace< double > | SamplingSchemeQSpaceType |
| typedef DWIReader | Self |
| typedef DWIImageType::SizeType | SizeType |
| typedef DWIImageType::SpacingType | SpacingType |
| typedef utl_shared_ptr< STDVectorType > | STDVectorPointer |
| typedef std::vector< double > | STDVectorType |
| typedef ImageSource< VectorImage< TPixelType, VImageDimension > > | Superclass |
Public Member Functions | |
| void | CorrectDWI () |
| virtual void | CorrectDWIValuesOff () |
| virtual void | CorrectDWIValuesOn () |
| virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
| virtual std::string | GetConfigurationFile () |
| virtual bool | GetCorrectDWIValues () |
| DWIImageType::Pointer | GetDWIImage () |
| virtual bool | GetIsInput4DImage () |
| virtual const MaskImageType * | GetMaskImage () const |
| virtual const char * | GetNameOfClass () const |
| virtual bool | GetNormalizeDWI () |
| virtual bool | GetShowWarnings () |
| virtual void | IsInput4DImageOff () |
| virtual void | IsInput4DImageOn () |
| itkGetObjectMacro (B0Image, B0ImageType) | |
| itkGetObjectMacro (SamplingSchemeQSpace, SamplingSchemeQSpaceType) | |
| void | NormalizeDWI () |
| virtual void | NormalizeDWIOff () |
| virtual void | NormalizeDWIOn () |
| void | ReadFromConfigurationFile (const std::string &file) |
| virtual void | SetB0Image (B0ImageType *_arg) |
| virtual void | SetConfigurationFile (std::string _arg) |
| virtual void | SetCorrectDWIValues (bool _arg) |
| virtual void | SetIsInput4DImage (bool _arg) |
| virtual void | SetMaskImage (MaskImageType *_arg) |
| virtual void | SetNormalizeDWI (bool _arg) |
| virtual void | SetSamplingSchemeQSpace (SamplingSchemeQSpaceType *_arg) |
| virtual void | SetShowWarnings (bool _arg) |
| virtual void | ShowWarningsOff () |
| virtual void | ShowWarningsOn () |
Static Public Member Functions | |
| static bool | DetermineIsInput4DImage (const std::string &dataStr) |
| static Pointer | New () |
Protected Member Functions | |
| DWIReader () | |
| virtual void | GenerateData () ITK_OVERRIDE |
| void | PrintSelf (std::ostream &os, Indent indent) const ITK_OVERRIDE |
| virtual | ~DWIReader () |
Private Member Functions | |
| DWIReader (const Self &) | |
| void | operator= (const Self &) |
Private Attributes | |
| B0ImageType::Pointer | m_B0Image |
| std::string | m_ConfigurationFile |
| bool | m_CorrectDWIValues |
| bool | m_IsInput4DImage |
| MaskImageType::Pointer | m_MaskImage |
| bool | m_NormalizeDWI |
| SamplingSchemeQSpacePointer | m_SamplingSchemeQSpace |
| bool | m_ShowWarnings |
| typedef B0ImageType::DirectionType itk::DWIReader< TPixelType, VImageDimension >::B0DirectionType |
Definition at line 94 of file itkDWIReader.h.
| typedef Image<TPixelType, VImageDimension> itk::DWIReader< TPixelType, VImageDimension >::B0ImageType |
Definition at line 72 of file itkDWIReader.h.
| typedef B0ImageType::IndexType itk::DWIReader< TPixelType, VImageDimension >::B0IndexType |
Definition at line 91 of file itkDWIReader.h.
| typedef B0ImageType::PixelType itk::DWIReader< TPixelType, VImageDimension >::B0PixelType |
Definition at line 93 of file itkDWIReader.h.
| typedef B0ImageType::RegionType itk::DWIReader< TPixelType, VImageDimension >::B0RegionType |
Definition at line 92 of file itkDWIReader.h.
| typedef B0ImageType::SizeType itk::DWIReader< TPixelType, VImageDimension >::B0SizeType |
Definition at line 90 of file itkDWIReader.h.
| typedef B0ImageType::SpacingType itk::DWIReader< TPixelType, VImageDimension >::B0SpacingType |
Definition at line 95 of file itkDWIReader.h.
| typedef DWIImageType::DirectionType itk::DWIReader< TPixelType, VImageDimension >::DirectionType |
Definition at line 87 of file itkDWIReader.h.
| typedef VectorImage<TPixelType, VImageDimension> itk::DWIReader< TPixelType, VImageDimension >::DWIImageType |
Definition at line 75 of file itkDWIReader.h.
| typedef DWIImageType::IndexType itk::DWIReader< TPixelType, VImageDimension >::IndexType |
Definition at line 84 of file itkDWIReader.h.
| typedef Image<double, VImageDimension> itk::DWIReader< TPixelType, VImageDimension >::MaskImageType |
Definition at line 76 of file itkDWIReader.h.
| typedef utl_shared_ptr<MatrixType> itk::DWIReader< TPixelType, VImageDimension >::MatrixPointer |
Definition at line 79 of file itkDWIReader.h.
| typedef utl::NDArray<double,2> itk::DWIReader< TPixelType, VImageDimension >::MatrixType |
Definition at line 78 of file itkDWIReader.h.
| typedef DWIImageType::PixelType itk::DWIReader< TPixelType, VImageDimension >::PixelType |
Definition at line 86 of file itkDWIReader.h.
| typedef SmartPointer< Self > itk::DWIReader< TPixelType, VImageDimension >::Pointer |
Definition at line 66 of file itkDWIReader.h.
| typedef DWIImageType::RegionType itk::DWIReader< TPixelType, VImageDimension >::RegionType |
Definition at line 85 of file itkDWIReader.h.
| typedef SamplingSchemeQSpaceType::Pointer itk::DWIReader< TPixelType, VImageDimension >::SamplingSchemeQSpacePointer |
Definition at line 98 of file itkDWIReader.h.
| typedef SamplingSchemeQSpace<double> itk::DWIReader< TPixelType, VImageDimension >::SamplingSchemeQSpaceType |
Definition at line 97 of file itkDWIReader.h.
| typedef DWIReader itk::DWIReader< TPixelType, VImageDimension >::Self |
Standard class typedefs.
Definition at line 64 of file itkDWIReader.h.
| typedef DWIImageType::SizeType itk::DWIReader< TPixelType, VImageDimension >::SizeType |
Definition at line 83 of file itkDWIReader.h.
| typedef DWIImageType::SpacingType itk::DWIReader< TPixelType, VImageDimension >::SpacingType |
Definition at line 88 of file itkDWIReader.h.
| typedef utl_shared_ptr<STDVectorType > itk::DWIReader< TPixelType, VImageDimension >::STDVectorPointer |
Definition at line 81 of file itkDWIReader.h.
| typedef std::vector<double> itk::DWIReader< TPixelType, VImageDimension >::STDVectorType |
Definition at line 80 of file itkDWIReader.h.
| typedef ImageSource< VectorImage<TPixelType, VImageDimension> > itk::DWIReader< TPixelType, VImageDimension >::Superclass |
Definition at line 65 of file itkDWIReader.h.
|
protected |
Definition at line 33 of file itkDWIReader.hxx.
References itk::DWIReader< TPixelType, VImageDimension >::DetermineIsInput4DImage().
Here is the call graph for this function:
|
inlineprotectedvirtual |
Definition at line 178 of file itkDWIReader.h.
References ITK_OVERRIDE.
|
private |
| void itk::DWIReader< TPixelType, VImageDimension >::CorrectDWI | ( | ) |
correct DWI values if they are negative or they are larger than values in b0 image
Definition at line 502 of file itkDWIReader.hxx.
References itk::IsImageEmpty(), utl::max(), itk::DWIReader< TPixelType, VImageDimension >::NormalizeDWI(), utlGlobalException, and utlShowPosition.
Referenced by itk::DWIReader< TPixelType, VImageDimension >::ReadFromConfigurationFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
|
virtual |
| virtual::itk::LightObject::Pointer itk::DWIReader< TPixelType, VImageDimension >::CreateAnother | ( | void | ) | const |
|
static |
Definition at line 50 of file itkDWIReader.hxx.
References itk::DWIReader< TPixelType, VImageDimension >::ReadFromConfigurationFile().
Referenced by itk::DWIReader< TPixelType, VImageDimension >::DWIReader().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protectedvirtual |
Does the real work.
Definition at line 628 of file itkDWIReader.hxx.
References itk::DWIReader< TPixelType, VImageDimension >::PrintSelf(), and utlGlobalException.
Referenced by itk::DWIReader< TPixelType, VImageDimension >::NormalizeDWI().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
|
virtual |
|
inline |
Definition at line 111 of file itkDWIReader.h.
|
virtual |
|
virtual |
|
virtual |
Run-time type information (and related methods).
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| itk::DWIReader< TPixelType, VImageDimension >::itkGetObjectMacro | ( | B0Image | , |
| B0ImageType | |||
| ) |
| itk::DWIReader< TPixelType, VImageDimension >::itkGetObjectMacro | ( | SamplingSchemeQSpace | , |
| SamplingSchemeQSpaceType | |||
| ) |
|
static |
Method for creation through the object factory.
| void itk::DWIReader< TPixelType, VImageDimension >::NormalizeDWI | ( | ) |
normalize DWI images using b0 image
Definition at line 596 of file itkDWIReader.hxx.
References itk::DWIReader< TPixelType, VImageDimension >::GenerateData(), utlGlobalException, and utlShowPosition.
Referenced by itk::DWIReader< TPixelType, VImageDimension >::CorrectDWI().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
|
virtual |
|
private |
|
protected |
Definition at line 650 of file itkDWIReader.hxx.
References itk::IsImageEmpty(), PrintVar1, and PrintVar3.
Referenced by itk::DWIReader< TPixelType, VImageDimension >::GenerateData().
Here is the call graph for this function:
Here is the caller graph for this function:| void itk::DWIReader< TPixelType, VImageDimension >::ReadFromConfigurationFile | ( | const std::string & | file | ) |
The data format has two types:
******in data.txt******************* 650 grad1.txt dwi1.nii index1.txt 1500 grad2.txt dwi2.nii index2.txt 3000 grad3.txt dwi3.nii index3.txt
Each line is for a single shell data. If the dimension N in grad.txt is smaller than the dimension M in dwi.nii, the first M-N dimension in dwi.hpp is for b0 image index.txt (optional) shows the index requested for reading. dwi.hdr can be stored as VectorImage or Image
******in data.txt********************* b1.txt grad1.txt dwi1.nii index1.txt b2.txt grad2.txt dwi2.nii index2.txt b3.txt grad3.txt dwi3.nii index3.txt
b.txt and grad.txt should have the same dimension
Definition at line 74 of file itkDWIReader.hxx.
References spams::abs(), itk::DWIReader< TPixelType, VImageDimension >::CorrectDWI(), utl::GetPath(), utl::IsFileExist(), itk::IsImageEmpty(), utl::IsInVector(), utl::IsNumber(), itk::PrintVariableLengthVector(), utl::PrintVector(), utl::ReadLinesFirstlineCheck(), utl::ReadVector(), utlGlobalException, utlPrintVar, utlShowPosition, and itk::VerifyImageInformation().
Referenced by itk::DWIReader< TPixelType, VImageDimension >::DetermineIsInput4DImage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Set/Get the mask image.
|
virtual |
|
virtual |
If set on, correct values
|
virtual |
If set on, convert 4D DWI image into 3D VectorImage
|
virtual |
Set/Get the mask image.
|
virtual |
If set on, output DWI Image will be normalized using B0Image
|
virtual |
|
virtual |
if it is true, print some warnings if the dwi values are abnormal (i.e. zero, negative, larger than b0 value)
|
virtual |
|
virtual |
|
private |
Definition at line 201 of file itkDWIReader.h.
|
private |
Definition at line 196 of file itkDWIReader.h.
|
private |
Definition at line 194 of file itkDWIReader.h.
|
private |
Definition at line 193 of file itkDWIReader.h.
|
private |
Definition at line 200 of file itkDWIReader.h.
|
private |
Definition at line 191 of file itkDWIReader.h.
|
private |
Definition at line 189 of file itkDWIReader.h.
|
private |
Definition at line 198 of file itkDWIReader.h.
1.8.11