Giter Club home page Giter Club logo

Comments (5)

N-Dekker avatar N-Dekker commented on June 14, 2024 1

@zapaishchykova Thank very much for submitting this issue, Anna. The issue is indeed caused by the image sampler using a random number generator (ImageSampler "Random"). Internally it uses the MersenneTwisterRandomVariateGenerator from ITK. Coincidentally I just submitted a proposal to allow resetting the next seed of that random number generator:

As far as I can see now, the proposed new function, ResetNextSeed(), should allow making the registration deterministic! So please "like" (👍) that pull request!

Kind regards, Niels

from elastix.

mstaring avatar mstaring commented on June 14, 2024 1

And then it would be good to make use of it in elastix.
This should also synchronize behavior with the command line executable, as that one is perfectly reproducible.

from elastix.

mstaring avatar mstaring commented on June 14, 2024 1

Yes it seems someone made a binary package in ubuntu of elastix.

You can also get it from
https://github.com/SuperElastix/elastix/releases/tag/5.1.0

from elastix.

zapaishchykova avatar zapaishchykova commented on June 14, 2024 1

perfect, thanks! Just tested the cmd - its indeed deterministic. I will stick to cmd version for now, while waiting for the pull request to be propagated to the Python library.

from elastix.

zapaishchykova avatar zapaishchykova commented on June 14, 2024

@N-Dekker awesome, what a great coincidence!

@mstaring do you by chance know the command line alternative for the itk.elastix_registration_method? is it this one https://manpages.ubuntu.com/manpages/trusty/man1/elastix.1.html? Then I can replace Python wrapper with some shell commands via subprocess.

from elastix.

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.