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

erreur de codage identifiée suite à segfault de StreamStat dans les FA

parent 0a0cc8b9
Branches
Tags
No related merge requests found
......@@ -103,7 +103,7 @@ VectorImageTo3DScalarImageFilter<TInputImage, TOutputImage>
}
inputRegion.SetSize(size);
inputRegion.SetIndex(index);
InputIteratorType inIt(inputPtr,inputRegion);
OutputIteratorType outIt(outputPtr,outputRegionForThread);
......@@ -115,19 +115,28 @@ VectorImageTo3DScalarImageFilter<TInputImage, TOutputImage>
while(!outIt.IsAtEnd())
{
if(outIt.IsAtEndOfLine())
{
outIt.NextLine();
}
if(inIt.IsAtEnd())
{
inIt.GoToBegin();
outIt.NextSlice();
}
outIt.Set(static_cast<OutputPixelType>(inIt.Get()[outIt.GetIndex()[InputImageType::ImageDimension]]));
if(inIt.IsAtEnd())
{
inIt.GoToBegin();
}
else
{
++inIt;
++outIt;
}
if(outIt.IsAtEndOfLine())
{
outIt.NextLine();
}
else if(outIt.IsAtEndOfSlice())
{
outIt.NextSlice();
}
else
{
++outIt;
}
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment