|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
28 #ifndef itkVectorConnectedComponentImageFilter_h
29 #define itkVectorConnectedComponentImageFilter_h
50 template <
typename TInput>
63 typename TInput::ValueType
78 return !(*
this != other);
86 for (
unsigned int i = 0; i < NumericTraits<TInput>::GetLength(a); ++i)
88 dotProduct += a[i] * b[i];
90 return (static_cast<typename TInput::ValueType>(1.0 - itk::Math::abs(dotProduct)) <=
m_Threshold);
108 template <
typename TInputImage,
typename TOutputImage,
typename TMaskImage = TInputImage>
112 Functor::SimilarVectorsFunctor<typename TInputImage::ValueType>,
148 #ifdef ITK_USE_CONCEPT_CHECKING
virtual void SetDistanceThreshold(const InputValueType &thresh)
virtual InputValueType GetDistanceThreshold()
A generic connected components filter that labels the objects in an arbitrary image.
~VectorConnectedComponentImageFilter() override=default
~SimilarVectorsFunctor()=default
VectorConnectedComponentImageFilter()=default
bool operator!=(const SimilarVectorsFunctor &) const
Base class for all process objects that output image data.
bool operator==(const SimilarVectorsFunctor &other) const
A connected components filter that labels the objects in a vector image. Two vectors are pointing sim...
A connected components filter that labels the objects in a vector image. Two vectors are pointing sim...
FunctorType & GetFunctor()
TInput::ValueType GetDistanceThreshold()
Define additional traits for native types such as int or float.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
TInput::ValueType m_Threshold
void SetDistanceThreshold(const typename TInput::ValueType &thresh)
typename TInputImage::PixelType::ValueType InputValueType
bool operator()(const TInput &a, const TInput &b) const