Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
itk::SquaredEuclideanMetric< TPixelType > Class Template Reference

Computes the squared Euclidean metric for a given pixel value. More...

#include <itkLocalVariationImageFilter.h>

Static Public Member Functions

static double Calc (TPixelType p)
 Compute the squared Euclidean metric of a pixel value. More...
 

Detailed Description

template<class TPixelType>
class itk::SquaredEuclideanMetric< TPixelType >

Computes the squared Euclidean metric for a given pixel value.

This helper class provides a static method to compute the squared Euclidean distance of a pixel value from zero. Template specializations exist for itk::VariableLengthVector<float> and itk::VariableLengthVector<double>, which use GetSquaredNorm(). For scalar types, the result is simply p * p.

Template Parameters
TPixelTypeThe pixel type for which to compute the metric.
See also
LocalVariationImageFilter

Definition at line 35 of file itkLocalVariationImageFilter.h.

Member Function Documentation

◆ Calc()

template<class TPixelType >
static double itk::SquaredEuclideanMetric< TPixelType >::Calc ( TPixelType  p)
static

Compute the squared Euclidean metric of a pixel value.

Parameters
[in]pThe pixel value.
Returns
The squared Euclidean distance from zero for the given pixel value.

The documentation for this class was generated from the following file: