[Insight-users] ITK Python Wrapping Examples

Hua Qian hqian at imaging . robarts . ca
Wed, 16 Jul 2003 11:33:08 -0400


Hi Luis,

I rebuilt ITK on another machine (Redhat 8.0) with the
same CVS checkout. This time, all the python examples
I tested ran nicely! The only change I made was to
put CableSwig checkout in the Utilities directory.
In my previous build (on a Mandrake), I put CableSwig
in parallel with Insight. I am doing a fresh build on my
Mandrake box right now and I'll let you know how it goes
when the build completed. It will take a few hours.

Regards,

Hua



Luis Ibanez wrote:

>
> 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
>>
>
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk . org
> http://www . itk . org/mailman/listinfo/insight-users