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>,
FunctorType & GetFunctor()
ConnectedComponentFunctorImageFilter()=default
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)
Implements transparent reference counting.
VectorConnectedComponentImageFilter Self
typename TInputImage::PixelType::ValueType InputValueType
virtual void SetDistanceThreshold(const InputValueType &thresh)
virtual InputValueType GetDistanceThreshold()
ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, Functor::SimilarVectorsFunctor< typename TInputImage::ValueType >, TMaskImage > Superclass
VectorConnectedComponentImageFilter()=default
~VectorConnectedComponentImageFilter() override=default
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....