18 #ifndef itkDistanceMetric_h
19 #define itkDistanceMetric_h
46 template<
typename TVector >
103 if ( s == this->m_MeasurementVectorSize )
109 this->m_MeasurementVectorSize = s;
121 if ( defaultLength != s )
124 "Attempting to change the measurement \
125 vector size of a non-resizable vector type" );
131 itkGetConstMacro(MeasurementVectorSize, MeasurementVectorSizeType);
136 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
148 #ifndef ITK_MANUAL_INSTANTIATION
149 #include "itkDistanceMetric.hxx"
SmartPointer< const Self > ConstPointer
virtual void SetMeasurementVectorSize(MeasurementVectorSizeType s)
Array< double > OriginType
TVector MeasurementVectorType
this class declares common interfaces for distance functions.
static bool IsResizable(const TVectorType &)
MeasurementVectorSizeType m_MeasurementVectorSize
virtual ~DistanceMetric() override
static unsigned int GetLength()
Base class for all ITK function objects.
FunctionBase< TVector, double > Superclass
Control indentation during Print() invocation.
SmartPointer< Self > Pointer
unsigned int MeasurementVectorSizeType