AttributeError: 'module' object has no attribute 'ElastixImageFilter'

ساخت وبلاگ
چکیده : I have followed the SimpleElastix installation in the link. When I run the following command to inst... با عنوان : AttributeError: 'module' object has no attribute 'ElastixImageFilter' بخوانید :

I have followed the SimpleElastix installation in the link. When I run the following command to install the python wrapper of SimpleElastix, it is successfully running and can import the packages:

sudo python Packaging/setup.py install

and I can import the packages and use the function as follows:

user@user-XPS-8920:~/softwares/SimpleElastix/build/SimpleITK-build/Wrapping/Python$ python
Python 2.7.12 (default, Nov 12 2018, 14:36:49) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import SimpleITK as sitk
>>> elastixImageFilter = sitk.ElastixImageFilter()
>>>

However, once I exit from the python terminal to the bash, and changing to python terminal command line again, it does not recognize the function:

user@user-XPS-8920:~/workspace/registration$ python
Python 2.7.12 (default, Nov 12 2018, 14:36:49) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import SimpleITK as sitk
>>> elastixImageFilter = sitk.ElastixImageFilter()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'ElastixImageFilter'
>>> 

Do you have any idea to help with this? What is the reason?

back soft...
ما را در سایت back soft دنبال می کنید

نویسنده : استخدام کار بازدید : 5 تاريخ : سه شنبه 27 آذر 1397 ساعت: 1:43