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

BUG: fixing Segmentation fault

parent 1b1c62fa
No related branches found
No related tags found
No related merge requests found
...@@ -247,12 +247,17 @@ TerraSarCalibrationImageFilter<TInputImage,TOutputImage> ...@@ -247,12 +247,17 @@ TerraSarCalibrationImageFilter<TInputImage,TOutputImage>
currentLine = inputIt.GetIndex()[1]; currentLine = inputIt.GetIndex()[1];
// And check if we changed of NoiseRecord // And check if we changed of NoiseRecord
if(currentAzimuthPosition < currentNoiseRecordIt->first if(currentAzimuthPosition < currentNoiseRecordIt->first)
&& currentNoiseRecordIt != m_NoiseRecords.end())
{ {
// If so, update the functor // Update the iterator
++currentNoiseRecordIt; ++currentNoiseRecordIt;
calibrationFunctor.SetNoiseRecord(currentNoiseRecordIt->second);
// If we are not at the last record
if(currentNoiseRecordIt != m_NoiseRecords.end())
{
// Update the functor noise record
calibrationFunctor.SetNoiseRecord(currentNoiseRecordIt->second);
}
} }
} }
// Apply the calibration functor // Apply the calibration functor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment