Skip to content
Snippets Groups Projects
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)
parent 121b841d
No related branches found
No related tags found
No related merge requests found
......@@ -53,8 +53,6 @@ public:
typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
typedef itk::ImageToImageFilter<FloatVectorImageType, FloatVectorImageType> FusionFilterType;
typedef otb::SimpleRcsPanSharpeningFusionImageFilter<FloatImageType, FloatVectorImageType, FloatVectorImageType> SimpleRCSFilterType;
typedef otb::LmvmPanSharpeningFusionImageFilter
......@@ -176,7 +174,9 @@ private:
filter->UpdateOutputInformation();
otbAppLogINFO( << "Simple RCS algorithm" );
m_FusionFilter = filter;
m_Ref.push_back(filter.GetPointer());
SetParameterOutputImage("out", filter->GetOutput());
break;
}
case 1:
......@@ -203,8 +203,9 @@ private:
filter->UpdateOutputInformation();
otbAppLogINFO( << "Lmvm algorithm" );
m_Ref.push_back(filter.GetPointer());
SetParameterOutputImage("out", filter->GetOutput());
m_FusionFilter = filter;
break;
}
case 2:
......@@ -224,7 +225,9 @@ private:
filter->UpdateOutputInformation();
otbAppLogINFO( << "Bayesian fusion algorithm" );
m_FusionFilter = filter;
m_Ref.push_back(filter.GetPointer());
SetParameterOutputImage("out", filter->GetOutput());
break;
}
......@@ -236,12 +239,9 @@ private:
}
return;
}
SetParameterOutputImage("out", m_FusionFilter->GetOutput());
}
std::vector<itk::ProcessObject::Pointer> m_Ref;
FusionFilterType::Pointer m_FusionFilter;
};
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment