28 #ifndef itkVectorConnectedComponentImageFilter_h
29 #define itkVectorConnectedComponentImageFilter_h
49 template<
typename TInput >
54 {
m_Threshold = itk::NumericTraits< typename TInput::ValueType >::ZeroValue(); }
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 - itk::Math::abs(dotProduct) ) <=
m_Threshold );
97 template<
typename TInputImage,
typename TOutputImage,
typename TMaskImage = TInputImage >
100 Functor::SimilarVectorsFunctor< typename TInputImage::ValueType >,
128 #ifdef ITK_USE_CONCEPT_CHECKING
bool operator==(const SimilarVectorsFunctor &other) const
Define numeric traits for std::vector.
A connected components filter that labels the objects in a vector image. Two vectors are pointing sim...
typename TInputImage::PixelType::ValueType InputValueType
A connected components filter that labels the objects in a vector image. Two vectors are pointing sim...
A generic connected components filter that labels the objects in an artibitrary image.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
~VectorConnectedComponentImageFilter() override=default
Base class for all process objects that output image data.
~SimilarVectorsFunctor()=default
FunctorType & GetFunctor()
virtual void SetDistanceThreshold(const InputValueType &thresh)
bool operator()(const TInput &a, const TInput &b) const
TInput::ValueType m_Threshold
TInput::ValueType GetDistanceThreshold()
void SetDistanceThreshold(const typename TInput::ValueType &thresh)
bool operator!=(const SimilarVectorsFunctor &) const
virtual InputValueType GetDistanceThreshold()
VectorConnectedComponentImageFilter()=default
#define itkConceptMacro(name, concept)