Skip to content

Fixed the fieldcoeff issue and also removed the linear transforms that a... #840

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 6, 2014

Conversation

thelxinoe
Copy link

...re added to the warps. These are unnecessry

…t are added to the warps. These are unnecessry
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling feae48c on thelxinoe:master into 7410d05 on nipy:master.

@@ -1188,8 +1189,7 @@ def create_reg_workflow(name='registration'):
warpmean = warp2anat.clone(name='warpmean')
register.connect(warp2anat, 'out_file', warpmean, 'in_file')
register.connect(inputnode, 'target_image', warpmean, 'ref_file')
register.connect(anat2target_affine, 'out_matrix_file', warpmean, 'premat')
Copy link
Member

Choose a reason for hiding this comment

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

@thelxinoe - thanks for these changes - have you checked these against what feat does?

Copy link
Author

Choose a reason for hiding this comment

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

Yeah, actually, there are more changes but I didn't want to make them
because maybe they are a little drastic. I have problems using this because
my T1 voxel size is too low <1mm. This is a problem because the apply warp
will suck up all the ram and then crash. In feat they don't do this. They
just combine the affine transformations and then apply them. This means
that it converts to the standard template which in this case is usually
2mm. This is much more reasonable and will run successfully. I don't really
want to say that it's a bug but it's maybe something to be aware of. Hence
I didn't make the changes.

Also, I removed the addition of the affine transformations because they are
already taken in to account in to the warpfield coefficients. Applying them
again causes major deformation of the registration. You can verify this
here:

http://fsl.fmrib.ox.ac.uk/fslcourse/lectures/practicals/reg/

On Fri, May 2, 2014 at 1:16 PM, Satrajit Ghosh notifications@github.comwrote:

In nipype/workflows/fmri/fsl/preprocess.py:

@@ -1188,8 +1189,7 @@ def create_reg_workflow(name='registration'):
warpmean = warp2anat.clone(name='warpmean')
register.connect(warp2anat, 'out_file', warpmean, 'in_file')
register.connect(inputnode, 'target_image', warpmean, 'ref_file')

  • register.connect(anat2target_affine, 'out_matrix_file', warpmean, 'premat')

@thelxinoe https://github.com/thelxinoe - thanks for these changes -
have you checked these against what feat does?


Reply to this email directly or view it on GitHubhttps://github.com//pull/840/files#r12226723
.

satra added a commit that referenced this pull request Jun 6, 2014
Fixed the fieldcoeff issue and also removed the linear transforms that a...
@satra satra merged commit 02158d6 into nipy:master Jun 6, 2014
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.

3 participants