Commit 85bf0e10 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

BUG: fix inverted coordinates in SarParametricMapFunction

parent cab506d8
Pipeline #7552 failed with stages
in 83 minutes and 27 seconds
......@@ -125,11 +125,11 @@ void SarParametricMapFunction<TInputImage, TCoordRep>::EvaluateParametricCoeffic
if (imd.Has(MDNum::NumberOfLines))
m_ProductHeight = imd[MDNum::NumberOfLines];
else
m_ProductHeight = this->GetInputImage()->GetLargestPossibleRegion().GetSize()[0];
m_ProductHeight = this->GetInputImage()->GetLargestPossibleRegion().GetSize()[1];
if (imd.Has(MDNum::NumberOfColumns))
m_ProductWidth = imd[MDNum::NumberOfColumns];
else
m_ProductWidth = this->GetInputImage()->GetLargestPossibleRegion().GetSize()[1];
m_ProductWidth = this->GetInputImage()->GetLargestPossibleRegion().GetSize()[0];
// Perform the plane least square estimation
unsigned int nbRecords = pointSet->GetNumberOfPoints();
......
Markdown is supported
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