ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::Functor::SimilarVectorsFunctor< TInput > Class Template Reference

#include <itkVectorConnectedComponentImageFilter.h>

Detailed Description

template<typename TInput>
class itk::Functor::SimilarVectorsFunctor< TInput >

A connected components filter that labels the objects in a vector image. Two vectors are pointing similar directions if one minus their dot product is less than a threshold. Vectors that are 180 degrees out of phase are similar. Assumes that vectors are normalized.

Definition at line 51 of file itkVectorConnectedComponentImageFilter.h.

Public Member Functions

TInput::ValueType GetDistanceThreshold ()
 
 ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION (SimilarVectorsFunctor)
 
bool operator() (const TInput &a, const TInput &b) const
 
bool operator== (const SimilarVectorsFunctor &) const
 
void SetDistanceThreshold (const typename TInput::ValueType &thresh)
 
 SimilarVectorsFunctor ()=default
 
 ~SimilarVectorsFunctor ()=default
 

Protected Attributes

TInput::ValueType m_Threshold {}
 

Constructor & Destructor Documentation

◆ SimilarVectorsFunctor()

template<typename TInput>
itk::Functor::SimilarVectorsFunctor< TInput >::SimilarVectorsFunctor ( )
default

◆ ~SimilarVectorsFunctor()

template<typename TInput>
itk::Functor::SimilarVectorsFunctor< TInput >::~SimilarVectorsFunctor ( )
default

Member Function Documentation

◆ GetDistanceThreshold()

template<typename TInput>
TInput::ValueType itk::Functor::SimilarVectorsFunctor< TInput >::GetDistanceThreshold ( )
inline

Definition at line 64 of file itkVectorConnectedComponentImageFilter.h.

References m_Threshold.

◆ ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION()

template<typename TInput>
itk::Functor::SimilarVectorsFunctor< TInput >::ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION ( SimilarVectorsFunctor< TInput > )

◆ operator()()

template<typename TInput>
bool itk::Functor::SimilarVectorsFunctor< TInput >::operator() ( const TInput & a,
const TInput & b ) const
inline

Definition at line 78 of file itkVectorConnectedComponentImageFilter.h.

References itk::Math::abs(), and m_Threshold.

◆ operator==()

template<typename TInput>
bool itk::Functor::SimilarVectorsFunctor< TInput >::operator== ( const SimilarVectorsFunctor< TInput > & ) const
inline

Definition at line 70 of file itkVectorConnectedComponentImageFilter.h.

References SimilarVectorsFunctor().

◆ SetDistanceThreshold()

template<typename TInput>
void itk::Functor::SimilarVectorsFunctor< TInput >::SetDistanceThreshold ( const typename TInput::ValueType & thresh)
inline

Member Data Documentation

◆ m_Threshold

template<typename TInput>
TInput::ValueType itk::Functor::SimilarVectorsFunctor< TInput >::m_Threshold {}
protected

The documentation for this class was generated from the following file: