32 #ifndef _itk_ResampleDwiImageFilter_h_
33 #define _itk_ResampleDwiImageFilter_h_
35 #include <itkImageToImageFilter.h>
36 #include <itkVectorImage.h>
45 template <
class TScalarType>
47 :
public ImageToImageFilter<itk::VectorImage<TScalarType,3>, itk::VectorImage<TScalarType,3> >
62 typedef ImageToImageFilter< itk::VectorImage<TScalarType,3>, itk::VectorImage<TScalarType,3> >
70 itkFactorylessNewMacro(Self)
91 DoubleVectorType oldSpacing = this->GetInput()->GetSpacing();
92 DoubleVectorType sampling;
93 sampling[0] = oldSpacing[0]/spacing[0];
94 sampling[1] = oldSpacing[1]/spacing[1];
95 sampling[2] = oldSpacing[2]/spacing[2];
105 ImageRegion<3> oldRegion = this->GetInput()->GetLargestPossibleRegion();
106 DoubleVectorType sampling;
107 sampling[0] = (double)region.GetSize(0)/oldRegion.GetSize(0);
108 sampling[1] = (double)region.GetSize(1)/oldRegion.GetSize(1);
109 sampling[2] = (double)region.GetSize(2)/oldRegion.GetSize(2);
141 #ifndef ITK_MANUAL_INSTANTIATION
virtual void UpdateOutputInformation()
virtual void VerifyInputInformation()
~ResampleDwiImageFilter()
itk::Vector< double, 3 > DoubleVectorType
SmartPointer< const Self > ConstPointer
Interpolation m_Interpolation
itk::VectorImage< TScalarType, 3 > DwiImageType
virtual void PropagateRequestedRegion(itk::DataObject *output)
SmartPointer< Self > Pointer
virtual void PropagateRequestedRegion()
itk::Image< TScalarType, 3 > DwiChannelType
Resample DWI channel by channel.
ImageRegion< 3 > m_NewImageRegion
void SetNewSpacing(DoubleVectorType spacing)
ResampleDwiImageFilter Self
DoubleVectorType m_NewSpacing
void SetSamplingFactor(DoubleVectorType sampling)
void SetNewImageSize(ImageRegion< 3 > region)
ImageToImageFilter< itk::VectorImage< TScalarType, 3 >, itk::VectorImage< TScalarType, 3 > > Superclass