[ITK Community] Filter error

Ernst Schwartz ernst_schwartz at gmx.at
Wed Jan 8 04:05:48 EST 2014


Hello!
On some (~2%) of my data, I get the following error when running MR bias correction :

Location: "void itk::BSplineScatteredDataPointSetToImageFilter<TInputPointSet, TOutputImage>::UpdatePointSet() [with TInputPointSet = itk::PointSet<itk::Vector<float, 1u>, 3u, itk::DefaultStaticMeshTraits<itk::Vector<float, 1u>, 3u, 3u, float, float, itk::Vector<float, 1u> > >, TOutputImage = itk::Image<itk::Vector<float, 1u>, 3u>]" 
File: /Users/kitware/Dashboards/Package/Slicer-422-package/ITKv3/Code/Review/itkBSplineScatteredDataPointSetToImageFilter.txx
Line: 912
Description: itk::ERROR: PointSetToImageFilter(0x104100f50): The collapse point component 4 is outside the corresponding parametric domain of [0, 4].


Looking at the class, the reason seems to lie in line 908 of  BSplineScatteredDataPointSetToImageFilter.txx:

      if( U[i] >= static_cast<RealType>( totalNumberOfSpans[i] ) )
        {
        itkExceptionMacro( "The collapse point component " << U[i]
          << " is outside the corresponding parametric domain of [0, "
          << totalNumberOfSpans[i] << "]." );
        }
      }

now, is this a bug or is there a reason (boundary condition of some sorts) for the 'greater or equal' interval here?
And if this behaviour is indeed intended, can I pre-filter my image somehow to make this go away?

thanks!
-Ernst


More information about the Community mailing list