Skip to content
Snippets Groups Projects
Commit e2a59735 authored by Julien Michel's avatar Julien Michel
Browse files

Correction erreurs de l'orthorectif

parent 2fb5771d
No related branches found
No related tags found
No related merge requests found
......@@ -61,6 +61,7 @@ class ITK_EXPORT OrthoRectificationFilter : public itk::ImageToImageFilter< TInp
typedef typename OrthoRectificationFilterBaseType::IndexType IndexType;
typedef typename OrthoRectificationFilterBaseType::SizeType SizeType;
typedef typename OrthoRectificationFilterBaseType::PointType PointType;
typedef typename OrthoRectificationFilterBaseType::RegionType RegionType;
typedef typename OrthoRectificationFilterBaseType::OriginPointType OriginPointType;
typedef typename OrthoRectificationFilterBaseType::SpacingType SpacingType;
......
......@@ -102,10 +102,15 @@ OrthoRectificationFilter< TInputImage,
TInterpolatorPrecision>
::GenerateInputRequestedRegion(void)
{
Superclass::GenerateInputRequestedRegion();
typename InputImageType::Pointer inputPtr = const_cast<InputImageType *>(this->GetInput());
if(!inputPtr)
{
return;
}
m_OrthoRectificationFilter->GetOutput()->UpdateOutputInformation();
m_OrthoRectificationFilter->GetOutput()->SetRequestedRegion(this->GetOutput()->GetRequestedRegion());
m_OrthoRectificationFilter->GetOutput()->PropagateRequestedRegion();
inputPtr->SetRequestedRegion(m_OrthoRectificationFilter->GetInput()->GetRequestedRegion());
}
......@@ -123,13 +128,10 @@ OrthoRectificationFilter< TInputImage,
{
// This is done here instead of inside the GenerateData() method so that the pipeline negociation
// use the minipipeline instead of default ITK methods.
m_OrthoRectificationFilter->GraftOutput(this->GetOutput());
// m_OrthoRectificationFilter->GetOutput()->UpdateOutputInformation();
// m_OrthoRectificationFilter->GetOutput()->PropagateRequestedRegion();
// m_OrthoRectificationFilter->GetOutput()->UpdateOutputData();
m_OrthoRectificationFilter->Update();
this->GraftOutput(m_OrthoRectificationFilter->GetOutput());
//m_OrthoRectificationFilter->Update();
m_OrthoRectificationFilter->GraftOutput(this->GetOutput());
m_OrthoRectificationFilter->Update();
this->GraftOutput(m_OrthoRectificationFilter->GetOutput());
}
} //namespace otb
......
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