-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
FIX: registration issue between T1w and BOLD in specific datasets #2607
FIX: registration issue between T1w and BOLD in specific datasets #2607
Conversation
- Avoid the issues with high-resolution anatomical data explained in nipreps#2591 - Improve consistency between running with `--fs-no-reconall` and without
- Disables `flirt` scaling of input transformation matrices, which may lead to issues with high-resolution T1w data (see nipreps#2591)
How does this work with your data @HippocampusGirl ? |
Hmm. If we're adding Looking at the source: void set_basescale(const string& filenameA, const string& filenameB)
{
if (!(gOptions->force_basescale)) {
// only try to automatically determine if it was not requested by the user
volume<float> volA, volB;
read_volume_hdr_only(volA,filenameA);
read_volume_hdr_only(volB,filenameB);
float maxdimA = Max(Max(volA.xdim(),volA.ydim()),volA.zdim());
float maxdimB = Max(Max(volB.xdim(),volB.ydim()),volB.zdim());
if (Max(maxdimA,maxdimB)>12) { // over 150% of largest (8mm) scale
gOptions->basescale = Max(maxdimA,maxdimB)/8;
}
float mindimA = Min(Min(volA.xdim(),volA.ydim()),volA.zdim());
float mindimB = Min(Min(volB.xdim(),volB.ydim()),volB.zdim());
if (Min(mindimA,mindimB)<0.75) { // between 0.5 and 1 mm
gOptions->basescale = Min(mindimA,mindimB);
}
}
}
I'm okay moving to Sorry for jumping one way and then the other. |
@oesteban @effigies |
@HippocampusGirl thanks much for the update and the effort. Since setting Would that be okay? |
- Includes only the `-basescale 1` fix and not the move to `mri_coreg` as discussed here nipreps/fmriprep#2607 (comment)
Changes proposed in this pull request
mri_coreg
infsl_bbr_wf
instead offlirt
as suggested by @effigies and @oesteban in Failed registrations between BOLD and T1w #2591-basescale 1
parameter to theflirt
boundary-based registration call to avoid the scaling behavior there too. As far as I can tell, this does not have side effects, but it may make sense to wait for a response from theflirt
developers before merging this one.Documentation that should be reviewed
No changes to documentation