[ITK] [ITK-users] Using ITK python wrapper
    Chiara Caborni 
    chiara.caborni at gmail.com
       
    Mon Mar 31 04:38:19 EDT 2014
    
    
  
Hello,
  I'm writing on behalf of Nicole in cc, which has subscribed to
insight-users at itk.org, but still cannot send mails directly to the
community, can you do something about that? thank you
I'm trying to use the python wrapped ITK, but I'm running into trouble
setting up my image type.
My code so far:
import sys
sys.path.append('C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release')
import itk
pixelType = itk.UC
imageType = itk.Image[pixelType,3]
Traceback (most recent call last):
File "<console>", line 1, in <module>
File
"C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkLazy.py",
line 37, in __getattribute__
itkBase.LoadModule(module, namespace)
File
"C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkBase.py",
line 95, in LoadModule
LoadModule(dep, namespace)
File
"C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkBase.py",
line 95, in LoadModule
LoadModule(dep, namespace)
File
"C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkBase.py",
line 95, in LoadModule
LoadModule(dep, namespace)
File
"C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkBase.py",
line 95, in LoadModule
LoadModule(dep, namespace)
File
"C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkBase.py",
line 95, in LoadModule
LoadModule(dep, namespace)
File
"C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkBase.py",
line 103, in LoadModule
if not swigModuleName in sys.modules: module = loader.load(swigModuleName)
File
"C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkBase.py",
line 213, in load
fp, pathname, description = imp.find_module(name)
Can anyone help me understand why this is happening and what I can do about
it?
Cheers,
Nicole
-- 
Chiara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140331/c2a9efcf/attachment.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
    
    
More information about the Community
mailing list