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 itkConceptMacro(InputPixelToOutputPixelTypeGreaterAdditiveOperatorCheck,
StandardDeviationAccumulator(SizeValueType size)
std::vector< TInputPixel > m_Values
void operator()(const TInputPixel &input)
~StandardDeviationAccumulator()=default
typename NumericTraits< TInputPixel >::RealType RealType
Implements transparent reference counting.
StandardDeviationProjectionImageFilter Self
typename InputImageType::PixelType InputPixelType
TInputImage InputImageType
SmartPointer< const Self > ConstPointer
~StandardDeviationProjectionImageFilter() override=default
SmartPointer< Self > Pointer
StandardDeviationProjectionImageFilter()=default
ProjectionImageFilter< TInputImage, TOutputImage, Functor::StandardDeviationAccumulator< typename TInputImage::PixelType, TAccumulate > > Superclass
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType