|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
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... | |
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.
| TPixelType | The pixel type for which to compute the metric. |
Definition at line 35 of file itkLocalVariationImageFilter.h.
|
static |
Compute the squared Euclidean metric of a pixel value.
| [in] | p | The pixel value. |