Skip to content
Snippets Groups Projects
Commit 954a722b authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

MRG

parents 63cbcfb3 5b362f39
No related branches found
No related tags found
No related merge requests found
......@@ -75,18 +75,12 @@ const std::map<std::string, double*>& MaskMuParserFilter<TInputImage, TOutputIma
FunctorPointer tempFunctor = FunctorType::New();
tempFunctor->SetExpression(m_Expression);
InputImageConstPointer inputPtr = this->GetInput();
// Define the iterators
itk::ImageConstIterator<TInputImage> inputIt(inputPtr, inputPtr->GetRequestedRegion());
inputIt.GoToBegin();
FunctorType& functor = *tempFunctor;
try
{
functor(inputIt.Get());
//functor(inputPtr->GetPixel(pixelIndex));
functor(this->GetInput()->GetPixel(this->GetInput()->GetBufferedRegion().GetIndex()));
}
catch (itk::ExceptionObject& err)
{
......
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