18 #ifndef itkStandardDeviationProjectionImageFilter_h
19 #define itkStandardDeviationProjectionImageFilter_h
49 template<
typename TInputPixel,
typename TAccumulate >
85 typename std::vector< TInputPixel >::iterator it;
89 squaredSum += vnl_math_sqr(*it - mean);
91 return std::sqrt( squaredSum / (
m_Size - 1 ) );
100 template<
typename TInputImage,
101 typename TOutputImage,
102 typename TAccumulate =
typename
108 Functor::StandardDeviationAccumulator< typename
109 TInputImage::PixelType, TAccumulate > >
116 TInputImage::PixelType,
131 #ifdef ITK_USE_CONCEPT_CHECKING
133 itkConceptMacro( InputPixelToOutputPixelTypeGreaterAdditiveOperatorCheck,
std::vector< TInputPixel > m_Values
void operator()(const TInputPixel &input)
StandardDeviationAccumulator(SizeValueType size)
ProjectionImageFilter< TInputImage, TOutputImage, Functor::StandardDeviationAccumulator< typename TInputImage::PixelType, TAccumulate > > Superclass
Base class for all process objects that output image data.
unsigned long SizeValueType
InputImageType::PixelType InputPixelType
Implements an accumulation of an image along a selected direction.
void operator=(const Self &)
StandardDeviationProjectionImageFilter Self
StandardDeviationProjectionImageFilter()
virtual ~StandardDeviationProjectionImageFilter()
NumericTraits< TInputPixel >::RealType RealType
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
Define additional traits for native types such as int or float.
#define itkConceptMacro(name, concept)
TInputImage InputImageType
~StandardDeviationAccumulator()