SuperElastix / SimpleElastix

Multi-lingual medical image registration library
http://simpleelastix.github.io
Apache License 2.0
514 stars 149 forks source link

Result of non-rigid registration / ImportError: No module named '_SimpleITK' / #221

Closed samieti02 closed 5 years ago

samieti02 commented 6 years ago

Hello dear Sir or Madam, thanks for the tool. I would like to mention a few points and a few questions I would have too. I spent a lot of time getting the tool up and running. After that, I tried a non-rigid registration and those are the results I had.

It was really annoying, cause i passed a lot of time with the build. I dowloaded the wheel data from the internet page and installed it,

Installed c:\users\me\appdata\local\continuum\anaconda3\envs\datapre\lib\site-packages\simpleitk-1.0.1rc1.dev345+g9dfa8-py3.4-win-amd64.egg Processing dependencies for SimpleITK==1.0.1rc1.dev345+g9dfa8 Finished processing dependencies for SimpleITK==1.0.1rc1.dev345+g9dfa8

and everything was ok. I would say that I was a bit lucky. The documentation also helped, but I'm not completely satisfied. I would like to know if the process I took to install it, is reasonable?

Thanks and Regards Sami

samieti02 commented 6 years ago

Hello dear people, could i have please a feedback? Why do i get a box around the skull? Which parameter should I use to optimize the results? The number of iterations didnt help. Which do you have? Thanks

PertuyF commented 6 years ago

It is not a "box", it is the background of your image that does not appear black.

Most likely your pixeltype changed during the registration (guessing from int16, somewhat standard for medical imaging, to float32, the default for ElastiX output) which modified the dynamic range of your image, and your viewer does not adjust. Changing the contrast inside your viewer should make the background appear "black" again.

samieti02 commented 6 years ago

thks for the (1) reply !

kaspermarstal commented 6 years ago

You are not the first user to come across the "No module" error. I don't know the cause at the moment, but working on a fix.

kaspermarstal commented 5 years ago

Run sudo python Packaging/setup.py install from the Wrapping/Python directory, not sudo python setup.py install from the Wrapping/Python/Packaging directory