21 #ifndef otbLabelizeNeighborhoodConnectedImageFilter_hxx
22 #define otbLabelizeNeighborhoodConnectedImageFilter_hxx
31 template <
class TInputImage,
class TOutputImage>
34 m_LowerThresholdDelta = itk::NumericTraits<InputPixelType>::NonpositiveMin();
35 m_UpperThresholdDelta = itk::NumericTraits<InputPixelType>::max();
38 m_ReplaceValue = itk::NumericTraits<OutputPixelType>::One;
44 template <
class TInputImage,
class TOutputImage>
49 this->m_RegionGrowingFilter->SetLower(threshold - m_LowerThresholdDelta);
50 this->m_RegionGrowingFilter->SetUpper(threshold + m_UpperThresholdDelta);
52 this->m_RegionGrowingFilter->SetReplaceValue(m_ReplaceValue);
53 this->m_RegionGrowingFilter->SetSeed(indexSeed);
60 template <
class TInputImage,
class TOutputImage>
63 Superclass::PrintSelf(os, indent);
64 os << indent <<
"LowerThresholdDelta: " << m_LowerThresholdDelta << std::endl;
65 os << indent <<
"UpperThresholdDelta: " << m_UpperThresholdDelta << std::endl;
66 os << indent <<
"ReplaceValue: " << m_ReplaceValue << std::endl;