[Insight-users] Re: anisotropic filter - segmentation fault

Luis Ibanez luis.ibanez@kitware.com
Fri, 06 Dec 2002 16:25:53 -0500


Hi Ghassan,

I couldn't access the URL you sent.

Could you try the following ?

   Disconnect  filters from the end of
the pipeline and call Update() on the
one that become the last.

That will help to identify which filter
is crashing.

BTW are you sure that this is a
segmentation fault.  It could be an
exception being thrown...

you may want to put the "Update()"
method in a try/catch block.

Please let us know what you find.


   Thanks


    Luis



========================================

Ghassan Hamarneh wrote:

> Hi Luis,
> 
> I am trying to run anisotropic diffusion filtering on a 3D test image (random
> image). The build goes fine and a bin is generated, but running the code
> produces a segmentation fault.
> 
> Any advice why the error maybe happening.
> 
> Pipeline:
>   uint_reader ->
>   uint2floatScaler ->
>   float2floatDiffusionFilter ->
>   float2uintScaler ->
>   uintWriter
> 
> The files:  CMakeLists.txt , itk_anldf.cxx , uint16.mhd , uint16.raw
> are at:     http://www.cs.toronto.edu/~ghassan/itk_help/
> 
> 
> Thank you,
> Ghassan
>