Skip to content
Snippets Groups Projects
Commit 53af3c4d authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

BUG : back to farmer version : streaming pb

parent 3cad0e30
No related branches found
No related tags found
No related merge requests found
......@@ -153,7 +153,12 @@ UnaryFunctorNeighborhoodWithOffsetImageFilter<TInputImage, TOutputImage, TFuncti
// support progress methods/callbacks
itk::ProgressReporter progress(this, threadId, outputRegionForThread.GetNumberOfPixels());
for (fit=faceList.begin(), fitOff=faceListOff.begin(); fit != faceList.end(), fitOff != faceListOff.end(); ++fit, ++fitOff)
// Process each of the boundary faces. These are N-d regions which border
// the edge of the buffer.
fit=faceList.begin();
fitOff=faceList.begin();
while (fit!=faceList.end() && fitOff!=faceListOff.end())
{
// neighborhood iterator
neighInputIt = itk::ConstNeighborhoodIterator<TInputImage>(r, inputPtr, *fit);
......@@ -165,8 +170,10 @@ UnaryFunctorNeighborhoodWithOffsetImageFilter<TInputImage, TOutputImage, TFuncti
neighInputOffIt.GoToBegin();
outputIt = itk::ImageRegionIterator<TOutputImage>(outputPtr, *fit);
while ( ! outputIt.IsAtEnd() )
{
outputIt.Set( m_FunctorList[threadId]( neighInputIt, neighInputOffIt) );
++neighInputIt;
......@@ -174,6 +181,8 @@ UnaryFunctorNeighborhoodWithOffsetImageFilter<TInputImage, TOutputImage, TFuncti
++outputIt;
progress.CompletedPixel();
}
++fit;
++fitOff;
}
}
......
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