21 #ifndef otbEdgeDensityImageFilter_hxx
22 #define otbEdgeDensityImageFilter_hxx
31 template <
class TInputImage,
class TOutputImage,
class TEdgeDetector,
class TDensityCount>
34 this->SetNumberOfRequiredInputs(1);
36 m_NeighborhoodRadius.Fill(1);
37 m_Detector = DetectorType::New();
38 m_DensityImageFilter = DensityImageType::New();
44 template <
class TInputImage,
class TOutputImage,
class TEdgeDetector,
class TDensityCount>
52 template <
class TInputImage,
class TOutputImage,
class TEdgeDetector,
class TDensityCount>
55 m_Detector->SetInput(this->GetInput());
57 m_DensityImageFilter->SetNeighborhoodRadius(m_NeighborhoodRadius);
58 m_DensityImageFilter->SetInput(m_Detector->GetOutput());
60 m_DensityImageFilter->GraftOutput(this->GetOutput());
61 m_DensityImageFilter->Update();
62 this->GraftOutput(m_DensityImageFilter->GetOutput());
68 template <
class TInputImage,
class TOutputImage,
class TEdgeDetector,
class TDensityCount>
71 Superclass::PrintSelf(os, indent);
72 os << indent <<
"Neighborhood Radius " << m_NeighborhoodRadius << std::endl;