[Insight-users] sorry, im again with wrappers

Brad King brad.king at kitware.com
Thu Jul 28 09:05:24 EDT 2005


Gaetan Lehmann wrote:
> On Wed, 27 Jul 2005 15:04:33 +0200, Brad King <brad.king at kitware.com>  
>> Yes, with that exact file I sent you.  I could load the wrappers and  
>> view the sample methods.  I couldn't create an instance of it though  
>> because it is an abstract class.
>>
> 
> I found the problem. It's just the import order.
> 
> Replacing
> 
>   from itkbasicfilters import *
>   from itknumerics import *
> 
> in itkalgorithms.py by
> 
>   from itknumerics import *
>   from itkbasicfilters import *
> 
> solve the problem.

Okay, since you are wrapping LabelStatisticsImageFilter from 
BasicFilters using type from Numerics the order becomes important.  I'll 
fix this in CVS soon.

-Brad


More information about the Insight-users mailing list