Commit 53bf3081 authored by Julien Michel's avatar Julien Michel
Browse files

correction test en erreur

parent 994ebc9f
......@@ -108,19 +108,8 @@ UnaryFunctorNeighborhoodImageFilter<TInputImage, TOutputImage, TFunction>
itk::ImageRegionIterator<TOutputImage> outputIt;
// Find the data-set boundary "faces"
typedef typename itk::NeighborhoodAlgorithm::ImageBoundaryFacesCalculator<InputImageType> TypeFace;
typename TypeFace::FaceListType::iterator fit;
typename TypeFace::FaceListType faceList;
TypeFace bC;
faceList = bC( inputPtr, outputRegionForThread, r );
// support progress methods/callbacks
itk::ProgressReporter progress(this, threadId, outputRegionForThread.GetNumberOfPixels());
fit=faceList.begin();
NeighborhoodIteratorType neighInputIt( r, inputPtr, outputRegionForThread );
neighInputIt.OverrideBoundaryCondition( &nbc );
......@@ -138,31 +127,7 @@ UnaryFunctorNeighborhoodImageFilter<TInputImage, TOutputImage, TFunction>
progress.CompletedPixel();
}
++fit;
// Process each of the boundary faces.
// Center first and then left, right, up, down borders
for (; fit != faceList.end(); ++fit )
{
neighInputIt=NeighborhoodIteratorType( r, inputPtr, *fit );
neighInputIt.OverrideBoundaryCondition( &nbc );
neighInputIt.GoToBegin();
outputIt = itk::ImageRegionIterator<TOutputImage> ( outputPtr, *fit );
outputIt.GoToBegin();
while ( !outputIt.IsAtEnd() )
{
outputIt.Set( m_Functor( neighInputIt ) );
++neighInputIt;
++outputIt;
progress.CompletedPixel();
}
}
}
}
} // end namespace otb
......
......@@ -459,7 +459,7 @@ ADD_TEST(raTvAtmosphericCorrectionParametersTo6SAtmosphericRadiativeTerms ${RADI
ADD_TEST(raTvAtmosphericCorrectionSequencementTest ${RADIOMETRY_TESTS4}
--compare-image ${TOL}
${BASELINE}/raTvSurfaceAdjencyEffect6SCorrectionSchemeFilter.tif
${BASELINE}/raTvRomaniaAtmosphericCorrectionSequencement.tif
${TEMP}/raTvRomaniaAtmosphericCorrectionSequencement.tif
otbAtmosphericCorrectionSequencementTest
${INPUTDATA}/Romania_Extract.tif
......
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