28#ifndef itkVectorConnectedComponentImageFilter_h
29#define itkVectorConnectedComponentImageFilter_h
50template <
typename TInput>
63 typename TInput::ValueType
81 RealValueType dotProduct{};
82 for (
unsigned int i = 0; i < NumericTraits<TInput>::GetLength(a); ++i)
84 dotProduct += a[i] * b[i];
104template <
typename TInputImage,
typename TOutputImage,
typename TMaskImage = TInputImage>
108 Functor::SimilarVectorsFunctor<typename TInputImage::ValueType>,
144#ifdef ITK_USE_CONCEPT_CHECKING
A generic connected components filter that labels the objects in an arbitrary image.
FunctorType & GetFunctor()
A connected components filter that labels the objects in a vector image. Two vectors are pointing sim...
~SimilarVectorsFunctor()=default
SimilarVectorsFunctor()=default
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(SimilarVectorsFunctor)
bool operator==(const SimilarVectorsFunctor &) const
TInput::ValueType m_Threshold
TInput::ValueType GetDistanceThreshold()
bool operator()(const TInput &a, const TInput &b) const
void SetDistanceThreshold(const typename TInput::ValueType &thresh)
Base class for all process objects that output image data.
Define additional traits for native types such as int or float.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
A connected components filter that labels the objects in a vector image. Two vectors are pointing sim...
typename TInputImage::PixelType::ValueType InputValueType
virtual void SetDistanceThreshold(const InputValueType &thresh)
virtual InputValueType GetDistanceThreshold()
VectorConnectedComponentImageFilter()=default
~VectorConnectedComponentImageFilter() override=default
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....