21 #ifndef otbAsymmetricFusionOfLineDetectorImageFilter_hxx
22 #define otbAsymmetricFusionOfLineDetectorImageFilter_hxx
32 template <
class TInputImage,
class TOutputImage,
class TOutputImageDirection,
class TInterpolator>
35 this->m_Radius.Fill(1);
36 this->m_LengthLine = 1;
37 this->m_WidthLine = 0;
38 this->m_NumberOfDirections = 8;
41 m_LineRatio = LineRatioType::New();
42 m_LineCorrelation = LineCorrelationType::New();
43 m_AssSymSum = AssSymSumType::New();
46 template <
class TInputImage,
class TOutputImage,
class TOutputImageDirection,
class TInterpolator>
49 m_LineRatio->SetInput(this->GetInput());
50 m_LineRatio->SetLengthLine(this->m_LengthLine);
51 m_LineRatio->SetWidthLine(this->m_WidthLine);
52 m_LineRatio->SetNumberOfDirections(this->m_NumberOfDirections);
54 m_LineCorrelation->SetInput(this->GetInput());
55 m_LineCorrelation->SetLengthLine(this->m_LengthLine);
56 m_LineCorrelation->SetWidthLine(this->m_WidthLine);
57 m_LineCorrelation->SetNumberOfDirections(this->m_NumberOfDirections);
59 m_AssSymSum->SetInput1(m_LineRatio->GetOutput());
60 m_AssSymSum->SetInput2(m_LineCorrelation->GetOutput());
62 m_AssSymSum->GraftOutput(this->GetOutput());
63 m_AssSymSum->Update();
64 this->GraftOutput(m_AssSymSum->GetOutput());