18#ifndef itkStandardDeviationProjectionImageFilter_h
19#define itkStandardDeviationProjectionImageFilter_h
49template <
typename TInputPixel,
typename TAccumulate>
66 m_Sum = TAccumulate{};
87 typename std::vector<TInputPixel>::iterator it;
91 squaredSum += itk::Math::sqr(*it - mean);
93 return std::sqrt(squaredSum / (
m_Size - 1));
102template <
typename TInputImage,
103 typename TOutputImage,
108 Functor::StandardDeviationAccumulator<typename TInputImage::PixelType, TAccumulate>>
132#ifdef ITK_USE_CONCEPT_CHECKING
134 itkConceptMacro(InputPixelToOutputPixelTypeGreaterAdditiveOperatorCheck,
StandardDeviationAccumulator(SizeValueType size)
std::vector< TInputPixel > m_Values
void operator()(const TInputPixel &input)
~StandardDeviationAccumulator()=default
typename NumericTraits< TInputPixel >::RealType RealType
Base class for all process objects that output image data.
TInputImage InputImageType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Implements an accumulation of an image along a selected direction.
typename InputImageType::PixelType InputPixelType
~StandardDeviationProjectionImageFilter() override=default
StandardDeviationProjectionImageFilter()=default
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType