28#ifndef itkScalarConnectedComponentImageFilter_h
29#define itkScalarConnectedComponentImageFilter_h
53template <
typename TInput>
82 operator()(
const TInput & a,
const TInput & b)
const
86 static_cast<TInput
>(
itk::Math::abs(
static_cast<InputRealType
>(a) -
static_cast<InputRealType
>(b)));
102template <
typename TInputImage,
typename TOutputImage,
typename TMaskImage = TInputImage>
106 Functor::SimilarPixelsFunctor<typename TInputImage::ValueType>,
143#ifdef ITK_USE_CONCEPT_CHECKING
A generic connected components filter that labels the objects in an arbitrary image.
FunctorType & GetFunctor()
bool operator==(const SimilarPixelsFunctor &other) const
bool operator()(const TInput &a, const TInput &b) const
void SetDistanceThreshold(const TInput &thresh)
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(SimilarPixelsFunctor)
~SimilarPixelsFunctor()=default
TInput GetDistanceThreshold()
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 an arbitrary image. Two pixels are similar i...
ScalarConnectedComponentImageFilter()=default
virtual void SetDistanceThreshold(const InputPixelType &thresh)
~ScalarConnectedComponentImageFilter() override=default
virtual InputPixelType GetDistanceThreshold()
typename TInputImage::PixelType InputPixelType
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....