Commit bf211285 authored by Julien Michel's avatar Julien Michel
Browse files

COMP: Fix compilation error on pansharpening application (can not convert to...

COMP: Fix compilation error on pansharpening application (can not convert to ImageToImageFilter instance)
No related merge requests found
Showing with 8 additions and 8 deletions
+8 -8
...@@ -53,8 +53,6 @@ public: ...@@ -53,8 +53,6 @@ public:
typedef itk::SmartPointer<Self> Pointer; typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer; typedef itk::SmartPointer<const Self> ConstPointer;
typedef itk::ImageToImageFilter<FloatVectorImageType, FloatVectorImageType> FusionFilterType;
typedef otb::SimpleRcsPanSharpeningFusionImageFilter<FloatImageType, FloatVectorImageType, FloatVectorImageType> SimpleRCSFilterType; typedef otb::SimpleRcsPanSharpeningFusionImageFilter<FloatImageType, FloatVectorImageType, FloatVectorImageType> SimpleRCSFilterType;
typedef otb::LmvmPanSharpeningFusionImageFilter typedef otb::LmvmPanSharpeningFusionImageFilter
...@@ -176,7 +174,9 @@ private: ...@@ -176,7 +174,9 @@ private:
filter->UpdateOutputInformation(); filter->UpdateOutputInformation();
otbAppLogINFO( << "Simple RCS algorithm" ); otbAppLogINFO( << "Simple RCS algorithm" );
m_FusionFilter = filter; m_Ref.push_back(filter.GetPointer());
SetParameterOutputImage("out", filter->GetOutput());
break; break;
} }
case 1: case 1:
...@@ -203,8 +203,9 @@ private: ...@@ -203,8 +203,9 @@ private:
filter->UpdateOutputInformation(); filter->UpdateOutputInformation();
otbAppLogINFO( << "Lmvm algorithm" ); otbAppLogINFO( << "Lmvm algorithm" );
m_Ref.push_back(filter.GetPointer());
SetParameterOutputImage("out", filter->GetOutput());
m_FusionFilter = filter;
break; break;
} }
case 2: case 2:
...@@ -224,7 +225,9 @@ private: ...@@ -224,7 +225,9 @@ private:
filter->UpdateOutputInformation(); filter->UpdateOutputInformation();
otbAppLogINFO( << "Bayesian fusion algorithm" ); otbAppLogINFO( << "Bayesian fusion algorithm" );
m_FusionFilter = filter;
m_Ref.push_back(filter.GetPointer());
SetParameterOutputImage("out", filter->GetOutput());
break; break;
} }
...@@ -236,12 +239,9 @@ private: ...@@ -236,12 +239,9 @@ private:
} }
return; return;
} }
SetParameterOutputImage("out", m_FusionFilter->GetOutput());
} }
std::vector<itk::ProcessObject::Pointer> m_Ref; std::vector<itk::ProcessObject::Pointer> m_Ref;
FusionFilterType::Pointer m_FusionFilter;
}; };
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment