16 #ifndef __itkTractsToDWIImageFilter_h__
17 #define __itkTractsToDWIImageFilter_h__
20 #include <itkVnlForwardFFTImageFilter.h>
21 #include <itkVectorImage.h>
24 #include <itkTimeProbe.h>
37 template<
class PixelType >
61 itkFactorylessNewMacro(Self)
67 itkSetMacro( InputImage, typename OutputImageType::Pointer )
68 itkSetMacro( UseConstantRandSeed,
bool )
78 itkGetMacro( StatusText, std::string )
79 itkGetMacro( PhaseImage, DoubleDwiType::Pointer )
80 itkGetMacro( KspaceImage, DoubleDwiType::Pointer )
88 virtual ~TractsToDWIImageFilter();
91 vnl_vector_fixed<
double, 3>
GetVnlVector(
double point[3]);
96 void PrintToLog(
string m,
bool addTime=true,
bool linebreak=true,
bool stdOut=true);
155 itk::Statistics::MersenneTwisterRandomVariateGenerator::Pointer
m_RandGen;
159 #ifndef ITK_MANUAL_INSTANTIATION
void PrintToLog(string m, bool addTime=true, bool linebreak=true, bool stdOut=true)
Superclass of all classes generating Images (instances of class Image) as output. ...
itk::Image< double, 4 > ItkDoubleImgType4D
itk::Image< float, 3 > ItkFloatImgType
DoubleVectorType m_Translation
void SimulateExtraAxonalSignal(ItkUcharImgType::IndexType index, double intraAxonalVolume, int g=-1)
OutputImageType::Pointer m_InputImage
Generates artificial diffusion weighted image volume from the input fiberbundle using a generic multi...
std::vector< DoubleDwiType::Pointer > m_CompartmentImages
ItkDoubleImgType::Pointer NormalizeInsideMask(ItkDoubleImgType::Pointer image)
ItkUcharImgType::Pointer m_UpsampledMaskImage
helper image for motion simulation
itk::VectorImage< double, 3 > DoubleDwiType
DoubleDwiType::Pointer SimulateKspaceAcquisition(std::vector< DoubleDwiType::Pointer > &images)
DoubleDwiType::Pointer m_PhaseImage
DataCollection - Class to facilitate loading/accessing structured data.
mitk::FiberfoxParameters< double > m_Parameters
Superclass::OutputImageType OutputImageType
itk::Statistics::MersenneTwisterRandomVariateGenerator::Pointer m_RandGen
FiberBundleType m_FiberBundleTransformed
transformed bundle simulating headmotion
TractsToDWIImageFilter Self
void SimulateMotion(int g=-1)
bool m_UseRelativeNonFiberVolumeFractions
The LevelWindow class Class to store level/window values.
std::vector< ItkDoubleImgType::Pointer > m_VolumeFractions
mitk::LevelWindow m_LevelWindow
itk::Vector< double, 3 > DoubleVectorType
Data structure which stores a set of points. Superclass of mitk::Mesh.
FiberBundleType m_FiberBundleWorkingCopy
we work on an upsampled version of the input bundle
bool m_UseConstantRandSeed
Datastructure to manage the Fiberfox signal generation parameters.
itk::Matrix< double, 3, 3 > MatrixType
FiberBundleType m_FiberBundle
std::vector< DoubleVectorType > m_Rotations
stores the individual rotation of each volume (needed for k-space simulation to obtain correct freque...
itk::Point< double, 3 > m_WorkingOrigin
itk::Point< float, 3 > GetItkPoint(double point[3])
double InterpolateValue(itk::Point< float, 3 > itkP, ItkDoubleImgType::Pointer img)
Base Class for Fiber Bundles;.
mitk::Image OutputImageType
Some convenient typedefs.
OutputImageType::Pointer m_OutputImage
itk::VectorImage< vcl_complex< double >, 3 > ComplexDwiType
DoubleDwiType::Pointer m_KspaceImage
double RoundToNearest(double num)
ItkUcharImgType::Pointer m_TransformedMaskImage
copy of mask image (changes for each motion step)
itk::Image< double, 3 > ItkDoubleImgType
DoubleVectorType m_Rotation
itk::Image< double, 2 > SliceType
ImageSource< itk::VectorImage< PixelType, 3 > > Superclass
mitk::PointSet::Pointer m_CoilPointset
SmartPointer< Self > Pointer
void CheckVolumeFractionImages()
itk::Image< unsigned char, 3 > ItkUcharImgType
std::vector< DoubleVectorType > m_Translations
stores the individual translation of each volume (needed for k-space simulation to obtain correct fre...
mitk::LevelWindow GetLevelWindow()
vnl_vector_fixed< double, 3 > GetVnlVector(double point[3])
itk::TimeProbe m_TimeProbe
itk::Vector< double, 3 > GetItkVector(double point[3])
void InitializeFiberData()
std::vector< ItkDoubleImgType::Pointer > GetVolumeFractions()
ImageRegion< 3 > m_WorkingImageRegion
itk::VnlForwardFFTImageFilter< SliceType >::OutputImageType ComplexSliceType
itk::Vector< double, 3 > m_WorkingSpacing
mitk::FiberBundle::Pointer FiberBundleType
section MAP_FRAME_Mapper_Settings Mapper settings For the mapping of corrected images
void SetParameters(FiberfoxParameters< double > param)
FiberfoxParameters< double > GetParameters()
SmartPointer< const Self > ConstPointer