Skip to content

Commit

Permalink
Merge pull request #1375 from blowekamp/FixN4SplineScatterOverModifie…
Browse files Browse the repository at this point in the history
…dMTime

BUG: Don't use InsertElement which modifies MTime
  • Loading branch information
blowekamp committed Oct 30, 2019
2 parents 303d31d + c8bb4ac commit 4967165
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -308,7 +308,7 @@ BSplineScatteredDataPointSetToImageFilter<TInputPointSet, TOutputImage>::Generat
typename PointDataContainerType::Iterator ItOut = this->m_OutputPointData->Begin();
while (ItIn != this->m_InputPointData->End())
{
this->m_InputPointData->InsertElement(ItIn.Index(), ItIn.Value() - ItOut.Value());
this->m_InputPointData->CastToSTLContainer()[ItIn.Index()] = ItIn.Value() - ItOut.Value();

if (this->GetDebug())
{
Expand Down Expand Up @@ -961,6 +961,7 @@ BSplineScatteredDataPointSetToImageFilter<TInputPointSet, TOutputImage>::UpdateP

typename PointDataImageType::IndexType startPhiIndex = this->m_PhiLattice->GetLargestPossibleRegion().GetIndex();

this->m_OutputPointData->CastToSTLContainer().resize(this->m_InputPointData->Size());
typename PointDataContainerType::ConstIterator ItIn = this->m_InputPointData->Begin();
while (ItIn != this->m_InputPointData->End())
{
Expand Down Expand Up @@ -1002,7 +1003,7 @@ BSplineScatteredDataPointSetToImageFilter<TInputPointSet, TOutputImage>::UpdateP
break;
}
}
this->m_OutputPointData->InsertElement(ItIn.Index(), collapsedPhiLattices[0]->GetPixel(startPhiIndex));
this->m_OutputPointData->CastToSTLContainer()[ItIn.Index()] = collapsedPhiLattices[0]->GetPixel(startPhiIndex);
++ItIn;
}
}
Expand Down

0 comments on commit 4967165

Please sign in to comment.