11 #ifndef __itkSHCoefficientsToGFAImageFilter_h 12 #define __itkSHCoefficientsToGFAImageFilter_h 14 #include "itkUnaryFunctorImageFilter.h" 29 template <
class TInput,
class TOutput=
double>
44 return !( *
this == other );
54 double norm2 = A.GetSquaredNorm();
56 return std::sqrt(1 - A[0]*A[0]/norm2 );
65 template <
class TInputImage,
class TOutputImage=itk::Image<
double,3> >
68 UnaryFunctorImageFilter<TInputImage, TOutputImage,
69 Functor::SHCoefficientsToGFA<
70 typename TInputImage::PixelType,
71 typename TOutputImage::PixelType> >
76 typedef UnaryFunctorImageFilter<
77 TInputImage, TOutputImage,
79 typename TInputImage::PixelType,
typename TOutputImage::PixelType>
102 void operator=(
const Self &);
bool operator!=(const SHCoefficientsToGFA &other) const
TOutput operator()(const TInput &A)
SHCoefficientsToGFAImageFilter()
SHCoefficientsToGFAImageFilter Self
In each vxoel, calculate gfa from SH coefficients.
bool operator==(const SHCoefficientsToGFA &other) const
UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::SHCoefficientsToGFA< typename TInputImage::PixelType, typename TOutputImage::PixelType > > Superclass
virtual ~SHCoefficientsToGFAImageFilter()
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer