[Insight-developers] Bug in DanielssonDistanceMapImageFilter
Bill Lorensen
bill.lorensen at gmail.com
Thu Mar 13 19:24:29 EDT 2008
Jeroen,
I checked in a fix. Please update
Code/BasicFilters/itkDanielssonDistanceMapImageFilter.txx and try your
example again. You can look at the bug
http://www.itk.org/Bug/view.php?id=2964 to see how I resolved the
problem.
Bill
On Wed, Mar 12, 2008 at 2:33 AM, <J.S.Wijnhout at lumc.nl> wrote:
>
>
> Hi,
>
> There seems to be a small bug in the DanielssonDistanceMapImageFilter when
> using an image with one of the dimensions having an extent of 1. Actually it
> causes a crash, so the effect is pretty bug.
>
> I discovered this when using a 3D image type and loading a 2D image into
> this. The culprit seems to be the line:
>
> it.FillOffsets(1);
>
> in the function
> DanielssonDistanceMapImageFilter<TInputImage,TOutputImage>::GenerateData().
>
> There is a bug filed for this (http://www.itk.org/Bug/view.php?id=2964),
> however I could not add my comments (probably need a login?). Anyway the bug
> seems easy to fix, now that the origin of it has been identified.
>
> best,
> Jeroen
>
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
>
>
More information about the Insight-developers
mailing list