21 #ifndef otbLabelizeConnectedThresholdImageFilter_hxx
22 #define otbLabelizeConnectedThresholdImageFilter_hxx
24 #include "itkNumericTraits.h"
33 template <
class TInputImage,
class TOutputImage>
36 m_LowerThresholdDelta = itk::NumericTraits<InputPixelType>::NonpositiveMin();
37 m_UpperThresholdDelta = itk::NumericTraits<InputPixelType>::max();
46 template <
class TInputImage,
class TOutputImage>
51 this->m_RegionGrowingFilter->SetLower(threshold - m_LowerThresholdDelta);
52 this->m_RegionGrowingFilter->SetUpper(threshold + m_UpperThresholdDelta);
54 this->m_RegionGrowingFilter->SetReplaceValue(m_ReplaceValue);
55 this->m_RegionGrowingFilter->SetSeed(indexSeed);
62 template <
class TInputImage,
class TOutputImage>
65 Superclass::PrintSelf(os, indent);
66 os << indent <<
"LowerThresholdDelta: " << m_LowerThresholdDelta << std::endl;
67 os << indent <<
"UpperThresholdDelta: " << m_UpperThresholdDelta << std::endl;
68 os << indent <<
"ReplaceValue: " << m_ReplaceValue << std::endl;