18 #ifndef __itkThresholdLabelerImageFilter_h
19 #define __itkThresholdLabelerImageFilter_h
44 template<
typename TInput,
typename TOutput >
74 return !( *
this != other );
89 for (
unsigned int i = 0; i < size - 1; i++ )
107 template<
typename TInputImage,
typename TOutputImage >
111 Functor::ThresholdLabeler<
112 typename TInputImage::PixelType,
113 typename TOutputImage::PixelType > >
119 TInputImage, TOutputImage,
121 typename TInputImage::PixelType,
122 typename TOutputImage::PixelType >
144 #ifdef ITK_USE_CONCEPT_CHECKING
161 typename ThresholdVector::const_iterator itr =
m_Thresholds.begin();
180 typename RealThresholdVector::const_iterator itr =
m_RealThresholds.begin();
183 m_Thresholds.push_back( static_cast< InputPixelType >( *itr ) );
219 #ifndef ITK_MANUAL_INSTANTIATION
220 #include "itkThresholdLabelerImageFilter.hxx"
void SetLabelOffset(const TOutput &labelOffset)
NumericTraits< TInput >::RealType RealThresholdType
const RealThresholdVector & GetRealThresholds() const
ThresholdVector m_Thresholds
virtual void BeforeThreadedGenerateData()
UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::ThresholdLabeler< typename TInputImage::PixelType, typename TOutputImage::PixelType > > Superclass
TOutput operator()(const TInput &A) const
Base class for all process objects that output image data.
TOutputImage::PixelType OutputPixelType
std::vector< InputPixelType > ThresholdVector
virtual ~ThresholdLabelerImageFilter()
RealThresholdVector m_RealThresholds
void operator=(const Self &)
SmartPointer< const Self > ConstPointer
std::vector< RealThresholdType > RealThresholdVector
void SetThresholds(const RealThresholdVector &thresholds)
void SetThresholds(const ThresholdVector &thresholds)
Label an input image according to a set of thresholds.
ThresholdLabelerImageFilter Self
std::vector< RealThresholdType > RealThresholdVector
virtual void Modified() const
NumericTraits< InputPixelType >::RealType RealThresholdType
ThresholdLabelerImageFilter()
bool operator!=(const ThresholdLabeler &other) const
Implements pixel-wise generic operation on one image.
void PrintSelf(std::ostream &os, Indent indent) const
TInputImage::PixelType InputPixelType
const ThresholdVector & GetThresholds() const
Control indentation during Print() invocation.
SmartPointer< Self > Pointer
bool operator==(const ThresholdLabeler &other) const
Define additional traits for native types such as int or float.
#define itkConceptMacro(name, concept)
OutputPixelType m_LabelOffset
void SetRealThresholds(const RealThresholdVector &thresholds)
RealThresholdVector m_Thresholds