Giter VIP home page Giter VIP logo

Comments (6)

drchrisch avatar drchrisch commented on June 17, 2024

Registration 3D images works fine (not only with an image dummy https://github.com/drchrisch/unresolved-stuff/blob/master/1_NumPyArray-Copy1.ipynb) but also using tif files. However, I am unable to apply the calculated transformation params to another 3D image. Did you try this?

from itkelastix.

drchrisch avatar drchrisch commented on June 17, 2024

Well, in fact, it does work in 3D. See Example_10 for details.

from itkelastix.

thewtex avatar thewtex commented on June 17, 2024

Currently, the registration method is available only for float images, though we are working to expand support re: SuperElastix/elastix#322.

Until then, read in the image with a float pixel type with:

fixed_image = itk.imread('my_image.mha', itk.F)

from itkelastix.

JSousa-UoL avatar JSousa-UoL commented on June 17, 2024

I'm using the command you suggested and it's still not working. However, to be honest I don't know if the Nifti file contains double or float data. I'll keep an eye on the link you provided

from itkelastix.

ViktorvdValk avatar ViktorvdValk commented on June 17, 2024

If you follow Example 3 , you should not get the error you provided. That error was due to a wrong initialization in the previous example notebooks, which is now fixed.

'itk.ElastixRegistrationMethod.New(fixed_image, moving_image)' is correct

from itkelastix.

JSousa-UoL avatar JSousa-UoL commented on June 17, 2024

I see, I installed the most recent version and I'm not getting that error anymore after following your advice. You may close this issue.

from itkelastix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.