[Insight-users] ITK Python Wrapping Examples

Luis Ibanez luis . ibanez at kitware . com
Tue, 15 Jul 2003 20:37:26 -0400


Hi Hua,


I just rebulid the wrapping in a Linux Debian with gcc 3.3
and both python examples are working ok.

Note that the finite difference solver in ITK has been
under revision in recent days. It may be that your CVS
checkout took the CurvatureFlowImageFilter in an unstable
state.

You may want to update your CVS checkout (verify first
if the dashboard is green, since we anticipate a lot
of activity before August 1).

In any case, Charl's observation is correct. ITK is throwing
an exception that is not being catched. That's why the
"abort" message appears.

One possible reason for this exception being thrown is that
the time step parameter provided to the filter is too big.

The timeStep parameter that you are using for the
CurvatureFlowImageFilter is right in the limit of the
value accepted as the bound for producing numerically
stable results.  Before updating your CVS, you may want
to try with smaller values of time step. (e.g. 0.1 instead
of 0.125).



Please let us  know if you continue experincing any
problems,


Thanks



   Luis



-------------------
Hua Qian wrote:
> Hi,
> 
> I am trying out the Python Wrapping for ITK recently. The build
> went on every smoothly. But I had troubles running some of the
> python examples. Some examples works, some don't.
> For example, CurvatureAnisotropicDiffusionImageFilter.py ran
> without problem:
> 
>  > python CurvatureAnisotropicDiffusionImageFilter.py 
> ../Data/BrainProtonDensitySlice.png test.png 10 0.125 3.0
> 
> But CurvatureFlowImageFilter.py aborted abnormally:
>  > python CurvatureFlowImageFilter.py 
> ../Data/BrainProtonDensitySlice.png test.png 10 0.125
> Abort
> 
> Am I doing something wrong? I am using Mandrake Linux 9.1, gcc 3.2.2, 
> python 2.2.2, cvs ITK, cvs CMake.
> 
> Thanks,
> 
> Hua Qian
> 
> 
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk . org
> http://www . itk . org/mailman/listinfo/insight-users
>