question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Perform registration on two pairs simultaneously

See original GitHub issue

Is your feature request related to a problem? Please describe. I was wondering if it was possible to perform registration on two pairs of images simultaneously. For example, in ants, I used both the whole image and vascular features to perform a robust registration:

antsRegistration -d 3 -n Linear  \
        -t SyN[0.1,3,0] -c [30x15x1x0,1e-7,10] -f 8x4x2x1 -s 2x1x1x1 -u 1 -z 1 -l 1 \
        -m CC[T1_f.nii, T1_m.nii , 0.9, 32, Regular, 0.25] \
        -m CC[T1_f_veins.nii,   T1_m_veins.nii ,  0.1, 32, Regular, 0.25] \
        -o [T1f_2_T1m, T1f_2_T1m.nii ]

Describe the solution you’d like I would like to translate this to its equivalent in ANTsPy, but it seems to be limited to presets. I saw that in ANTsR there is something equivalent to what I aim to achieve:

multivariateExtras | list of additional images and metrics which will trigger the use of multiple metrics in the registration process in the deformable stage. Multivariate metrics needs 5 entries: name of metric, fixed, moving, weight, samplingParam. the list should be of the form list( list( “nameOfMetric2”, img, img, weight, metricParam ) ) . Another example would be list( list( “MeanSquares”, f2, m2, 0.5, 0 ), list( “CC”, f2, m2, 0.5, 2 ) ) . This is only compatible with the SyNOnly or ElasticOnly transformation.

However this argument does not seem to be present in ANTsPy (and I am having a hard time figuring out how to make it works).

On a side note, It would be great to include more complex examples of the different functions in ANTsPy.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

0reactions
stnavacommented, Feb 19, 2021

ANTsX is open source and you can implement such things yourself if you think it is worth your time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Register Pairs for a Signup - Registrations
For signups with a combined cost for multiple people, such as couples registering for a marriage conference or teams for a tournament, ...
Read more >
How to Connect Two AirPods to One Phone to Share Audio
For AirPods Max, simply hold them close to your iPhone. If you have wireless Beats, put them in pairing mode before holding them...
Read more >
Multiview Registration for Large Data Sets
In this paper we present a multiview registration method for aligning range data. We first align scans pairwise with each other and use...
Read more >
Couples - Applicants - National Matching Services
Applicants who participate in the Match as a couple link their choices together to form "pairs" of program choices. The paired program choices...
Read more >
Simultaneous Nonrigid Registration of Multiple Point Sets and ...
Abstract. Estimating a meaningful average or mean shape from a set of shapes represented by unlabeled point-sets is a challenging problem since,.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found