Skip to content

Use neuroreg for registration, mapping, conversion in several places (HypVINN, longitudinal primarily) - #828

Draft
m-reuter wants to merge 11 commits into
devfrom
t2reg
Draft

Use neuroreg for registration, mapping, conversion in several places (HypVINN, longitudinal primarily)#828
m-reuter wants to merge 11 commits into
devfrom
t2reg

Conversation

@m-reuter

@m-reuter m-reuter commented May 26, 2026

Copy link
Copy Markdown
Member

In order to remove the FreeSurfer dependencies in the seg_only path, we replace mri_coreg, mri_robust_register, mri_robust_template, mri_vol2vol, mri_mask, mri_binarize, mri_info) calls with neuroreg.

  • this speeds up processing
  • with --keep-dtype we can keep the input data type to replicate FreeSrufer's behaviour
  • similary we use cubic interpolation to map the movable images after registration as default
  • in hypvinn module we drop the option for mri_robust_register --cost nmi as we now use neuroreg.coreg which also replaces mri_coreg at the same time (cross modal registration based on NMI and Powell optimiser).

In the future, we can generate quick WM surfaces based on the segmentaiton and then can explore if neuroreg bbreg adds any value here.

@m-reuter
m-reuter marked this pull request as draft May 26, 2026 13:03
@m-reuter m-reuter changed the title Use neuroreg coreg instead of mri_coreg in hypVINN T2 registration Use neuroreg for registration, mapping, conversion in several places (HypVINN, longitudinal primarily) Jul 1, 2026
cmd="$cmd --noit"
t1=${SUBJECTS_DIR}/$tid/mri/orig.mgz
cmd="$cmd --template $t1"
cmd="$cmd --template $t1 $device_opt"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cmd="$cmd --template $t1 $device_opt"
cmd="$cmd --template $t1"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

device not needed here, as we are not registering, only mapping, which happens on the CPU.

Comment thread requirements.txt
networkx==3.6.1
neurolit==0.6.1
neuroreg==0.6.2
neuroreg==0.10.1

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
neuroreg==0.10.1
neuroreg==0.10.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant