28 #ifndef __itkVectorConnectedComponentImageFilter_h
29 #define __itkVectorConnectedComponentImageFilter_h
31 #include "vnl/vnl_math.h"
49 template<
class TInput >
69 return !( *
this != other );
72 bool operator()(
const TInput & a,
const TInput & b)
const
76 for (
unsigned int i = 0; i < NumericTraits<TInput>::GetLength(a); ++i)
78 dotProduct += a[i]*b[i];
80 return ( static_cast<typename TInput::ValueType>( 1.0 - vnl_math_abs(dotProduct) ) <=
m_Threshold );
97 template<
class TInputImage,
class TOutputImage,
class TMaskImage = TInputImage >
100 Functor::SimilarVectorsFunctor< typename TInputImage::ValueType >,
118 typedef typename TInputImage::PixelType::ValueType
InputValueType;
121 { this->GetFunctor().SetDistanceThreshold(thresh); }
126 #ifdef ITK_USE_CONCEPT_CHECKING
142 void operator=(
const Self &);