17 #ifndef __itkVectorMeanImageFunction_h
18 #define __itkVectorMeanImageFunction_h
21 #include "itkNumericTraits.h"
43 template <
class TInputImage,
class TCoordRep =
float >
47 ITK_TYPENAME NumericTraits<typename TInputImage::PixelType::ValueType>::RealType,
48 ::itk::GetVectorDimension<typename TInputImage::PixelType>::VectorDimension >,
56 ITK_TYPENAME NumericTraits<typename TInputImage::PixelType::ValueType>::RealType,
84 itkStaticConstMacro(ImageDimension,
unsigned int,
85 InputImageType::ImageDimension);
89 typename NumericTraits<typename InputImageType::PixelType::ValueType>::RealType,
100 this->ConvertPointToNearestIndex( point, index );
101 return this->EvaluateAtIndex( index );
107 this->ConvertContinuousIndexToNearestIndex( cindex, index );
108 return this->EvaluateAtIndex( index );
113 itkSetMacro( NeighborhoodRadius,
unsigned int );
114 itkGetConstReferenceMacro( NeighborhoodRadius,
unsigned int );
119 void PrintSelf(std::ostream& os,
Indent indent)
const;
123 void operator=(
const Self& );
132 #define ITK_TEMPLATE_VectorMeanImageFunction(_, EXPORT, x, y) namespace itk { \
133 _(2(class EXPORT VectorMeanImageFunction< ITK_TEMPLATE_2 x >)) \
134 namespace Templates { typedef VectorMeanImageFunction< ITK_TEMPLATE_2 x > \
135 VectorMeanImageFunction##y; } \
138 #if ITK_TEMPLATE_EXPLICIT
139 # include "Templates/itkVectorMeanImageFunction+-.h"