32 #ifndef _itk_TensorImageToDiffusionImageFilter_h_
33 #define _itk_TensorImageToDiffusionImageFilter_h_
35 #include "itkImageToImageFilter.h"
37 #include <itkDiffusionTensor3D.h>
38 #include <itkVectorContainer.h>
43 template <
class TInputScalarType,
class TOutputScalarType>
45 :
public ImageToImageFilter<itk::Image<itk::DiffusionTensor3D<TInputScalarType>,3>, itk::VectorImage<TOutputScalarType,3> >
69 typedef ImageToImageFilter<InputImageType, OutputImageType>
Superclass;
77 OutputImageType::ImageDimension);
79 itkFactorylessNewMacro(Self)
89 m_GradientList = list;
93 {
return m_GradientList;}
101 m_MaskImage = maskimage;
113 m_BaselineImage = bimage;
116 itkSetMacro(
Min, OutputScalarType);
117 itkSetMacro(
Max, OutputScalarType);
133 Superclass::PrintSelf (os, indent);
139 OutputImageRegionType &outputRegionForThread, ThreadIdType);
149 void operator=(
const Self&);
155 OutputScalarType m_Min;
156 OutputScalarType m_Max;
166 #ifndef ITK_MANUAL_INSTANTIATION
GradientListType::Pointer GradientListPointerType
itk::SmartPointer< Self > Pointer
SmartPointer< Self > Pointer
virtual void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType)
virtual void UpdateOutputInformation()
OutputImageType::PixelType OutputPixelType
InputImageType::RegionType InputImageRegionType
void PrintSelf(std::ostream &os, Indent indent) const
BaselineScalarType BaselinePixelType
virtual void BeforeThreadedGenerateData(void)
BaselineImageType::RegionType BaselineImageRegionType
GradientListPointerType GetGradientList(void) const
OutputImageType::RegionType OutputImageRegionType
TensorImageToDiffusionImageFilter()
vnl_vector_fixed< double, 3 > GradientType
OutputScalarType BaselineScalarType
void SetExternalBaselineImage(typename BaselineImageType::Pointer bimage)
Set an external baseline image for signal generation (optional)
itk::Image< short, 3 > MaskImageType
TOutputScalarType OutputScalarType
TInputScalarType InputScalarType
void SetBValue(const double &bval)
itk::DiffusionTensor3D< InputScalarType > InputPixelType
SmartPointer< const Self > ConstPointer
void SetGradientList(const GradientListPointerType list)
itk::Image< BaselinePixelType, 3 > BaselineImageType
ImageToImageFilter< InputImageType, OutputImageType > Superclass
TensorImageToDiffusionImageFilter Self
itkStaticConstMacro(ImageDimension, unsigned int, OutputImageType::ImageDimension)
virtual ~TensorImageToDiffusionImageFilter()
MaskImageType::RegionType MaskImageRegionType
void SetMaskImage(MaskImageType::Pointer maskimage)
itk::Image< InputPixelType, 3 > InputImageType
VectorContainer< unsigned int, GradientType > GradientListType
itk::VectorImage< OutputScalarType, 3 > OutputImageType