Comments (5)
itk-anisotropicdiffusionlbr 1.0.2
itk-meshtopolydata 0.5.1
In a fresh virtualenv without these packages, does the error still occur?
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade --pre itk-elastix itk
from itkelastix.
I uninstalled anisotropicdiffusionlbr and meshtopolydata. Error persits. I upgraded pip and itk (but it was already at the most recent version). Error persists.
$ python3 -m pip install --upgrade --user pip
Requirement already up-to-date: pip in /home/lobacheo/.local/lib/python3.7/site-packages (20.0.2)
$ python3 -m pip install --upgrade --user --pre itk-elastix itk
Requirement already up-to-date: itk-elastix in /home/lobacheo/.local/lib/python3.7/site-packages (0.5.1)
Requirement already up-to-date: itk in /home/lobacheo/.local/lib/python3.7/site-packages (5.1rc1.post1)
Requirement already satisfied, skipping upgrade: itk-filtering==5.1rc1.post1 in /home/lobacheo/.local/lib/python3.7/site-packages (from itk) (5.1rc1.post1)
Requirement already satisfied, skipping upgrade: itk-registration==5.1rc1.post1 in /home/lobacheo/.local/lib/python3.7/site-packages (from itk) (5.1rc1.post1)
Requirement already satisfied, skipping upgrade: itk-core==5.1rc1.post1 in /home/lobacheo/.local/lib/python3.7/site-packages (from itk) (5.1rc1.post1)
Requirement already satisfied, skipping upgrade: numpy in /home/lobacheo/.local/lib/python3.7/site-packages (from itk) (1.17.4)
Requirement already satisfied, skipping upgrade: itk-segmentation==5.1rc1.post1 in /home/lobacheo/.local/lib/python3.7/site-packages (from itk) (5.1rc1.post1)
Requirement already satisfied, skipping upgrade: itk-numerics==5.1rc1.post1 in /home/lobacheo/.local/lib/python3.7/site-packages (from itk) (5.1rc1.post1)
Requirement already satisfied, skipping upgrade: itk-io==5.1rc1.post1 in /home/lobacheo/.local/lib/python3.7/site-packages (from itk) (5.1rc1.post1)
$ python3 itkElastixRegistrationMethodTest.py input_0001.png input_0002.png test.png
Traceback (most recent call last):
File "itkElastixRegistrationMethodTest.py", line 61, in <module>
registered, transform = itk.elastix_registration_method(fixed, moving)
File "/home/lobacheo/.local/lib/python3.7/site-packages/itkLazy.py", line 52, in __getattribute__
itkBase.LoadModule(module, namespace)
File "/home/lobacheo/.local/lib/python3.7/site-packages/itkBase.py", line 82, in LoadModule
LoadModule(dep, namespace)
File "/home/lobacheo/.local/lib/python3.7/site-packages/itkBase.py", line 78, in LoadModule
data = module_data[name]
KeyError: 'ITKSmoothing'
$ pip3 list | grep itk
itk 5.1rc1.post1
itk-core 5.1rc1.post1
itk-elastix 0.5.1
itk-elastix-opencl 0.5.1
itk-filtering 5.1rc1.post1
itk-io 5.1rc1.post1
itk-numerics 5.1rc1.post1
itk-registration 5.1rc1.post1
itk-segmentation 5.1rc1.post1
itkwidgets 0.25.2
from itkelastix.
A fresh virtualenv seems to bring me further. The current error is gone. Thank you!
I still get:
(test) $ python3 ../itkElastixRegistrationMethodTest.py ../input_0001.png ../input_0002.png test.png
Traceback (most recent call last):
File "../itkElastixRegistrationMethodTest.py", line 61, in <module>
registered, transform = itk.elastix_registration_method(fixed, moving)
TypeError: cannot unpack non-iterable itkImageF2 object
I am investigating futher.
from itkelastix.
Okay, it works.
One caveat, as expected from above: in https://github.com/InsightSoftwareConsortium/ITKElastix/blob/master/wrapping/test/itkElastixRegistrationMethodTest.py in else
branch (line 60): we are not getting a transform
back. So, there is no tuple. And also no transform
defined for the later output.
from itkelastix.
registered, transform = itk.elastix_registration_method(fixed, moving)
This is a difference in the API of master
versus the released Python package.
Thank you for your patience.
This will be cleaned up with the ITK 5.1.0 release.
from itkelastix.
Related Issues (20)
- Order of transformparameter files when computing inverse HOT 1
- Method visibility issue with Apple M1 install HOT 1
- Segmentation fault on Apple M2 HOT 4
- Use saved registration to apply for new images HOT 2
- python can't find itk-elastix on arm64 Mac HOT 3
- macOS arm packages missing for 0.18.0 HOT 3
- Update documentation
- External initial transform causes a failure in ConvertToItkTransform HOT 16
- How to convert ITK transform into Elastix transform parameters file? HOT 14
- Saving and Loading Paramter files to reapply transfomr HOT 2
- Histology image registration HOT 5
- `itkwasm-elastix` Site Feedback
- `itk.elastix_registration_method` sometimes crashes silently HOT 2
- Make `itk.ParameterObject` and parameter maps serializable HOT 5
- Segmentation fault on Ubuntu 20.04.6 LTS, x86_64, Python 3.9-3.11 HOT 13
- CORS on loading 3D data HOT 2
- SWIG build warning for `itk::ElastixLogLevel` HOT 3
- Notebook test failures
- Latest ITKElastix crashes HOT 6
- How to minimise non-rigid distortion when using groupwise registration HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from itkelastix.