21 #ifndef otbHarrisImageToPointSetFilter_hxx
22 #define otbHarrisImageToPointSetFilter_hxx
32 template <
class TInputImage,
class TOutputPo
intSet>
39 m_LowerThreshold = itk::NumericTraits<InputPixelType>::NonpositiveMin();
40 m_UpperThreshold = itk::NumericTraits<InputPixelType>::max();
42 m_HarrisFilter = HarrisImageFilterType::New();
43 m_ThresholdFilter = ThresholdImageToPointSetType::New();
46 template <
class TInputImage,
class TOutputPo
intSet>
50 typename OutputPointSetType::Pointer pointList = this->GetOutput();
52 m_HarrisFilter->SetInput(0, this->GetInput(0));
53 m_HarrisFilter->SetSigmaD(m_SigmaD);
54 m_HarrisFilter->SetSigmaI(m_SigmaI);
55 m_HarrisFilter->SetAlpha(m_Alpha);
57 m_ThresholdFilter->SetInput(0, m_HarrisFilter->GetOutput());
58 m_ThresholdFilter->SetLowerThreshold(m_LowerThreshold);
59 m_ThresholdFilter->SetUpperThreshold(m_UpperThreshold);
61 m_ThresholdFilter->SetOutput(pointList);
62 m_ThresholdFilter->Update();
68 template <
class TInputImage,
class TOutputPo
intSet>
71 Superclass::PrintSelf(os, indent);
72 os << indent <<
"Sigma_D : " << this->m_SigmaD << std::endl;
73 os << indent <<
"Sigma_I : " << this->m_SigmaI << std::endl;
74 os << indent <<
"Alpha : " << this->m_Alpha << std::endl;
75 os << indent <<
"LowerThreshold : " << this->m_LowerThreshold << std::endl;
76 os << indent <<
"UpperThreshold : " << this->m_UpperThreshold << std::endl;