Giter VIP home page Giter VIP logo

Comments (2)

jcohenadad avatar jcohenadad commented on September 26, 2024

Hum, one possible cause is that there are two APIs depending on the slicewise parameter:

# ANTS 3d
elif step.algo.lower() in ants_registration_params and step.slicewise == '0': # FIXME [AJ]
warp_forward_out, warp_inverse_out = algorithms.register_step_ants_registration(
src=src,
dest=dest,
step=step,
masking=masking,
ants_registration_params=ants_registration_params,
padding=param.padding,
metricSize=metricSize,
verbose=param.verbose,
)
# ANTS 2d
elif step.algo.lower() in ants_registration_params and step.slicewise == '1': # FIXME [AJ]
warp_forward_out, warp_inverse_out = algorithms.register_step_slicewise_ants(
src=src,
dest=dest,
step=step,
ants_registration_params=ants_registration_params,
fname_mask=fname_mask,
remove_temp_files=param.remove_temp_files,
verbose=param.verbose,
)

BUT: The default slicewise is 0. So it shouldn't matter...

from spinalcordtoolbox.

jcohenadad avatar jcohenadad commented on September 26, 2024

When tweaking params, eg; adding multi-step shrink factors (4, 2, 1), I do see a difference in the src/src_reg, so maybe the original issue is simply data-related (ie: no convergence, and hence registration matrix is identity).

from spinalcordtoolbox.

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.