Skip to content
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

ENH: Remove DeformationField parameter from GenericTransformImage #32

Merged
merged 1 commit into from
May 1, 2013
Merged

ENH: Remove DeformationField parameter from GenericTransformImage #32

merged 1 commit into from
May 1, 2013

Conversation

Chaircrusher
Copy link

See https://www.icts.uiowa.edu/jira/browse/PREDICTIMG-1667

The GenericTransformImage template function isn't used that many
places. In most it's clear that either a DeformationField or
a Transform is passed in. A few places in BRAINSCut it looks like
both are passed in, but in practice only one or the other is
actually defined.

The way GenericTransformImage was actually written, if both a
transform and a displacement field are passed in, the transform
is ignored. So I felt justified in enforcing that at the
point of call. If needed, a DisplaceFieldTransform is created
and the Displacement Image is passed in.

The biggest 'hidden' change this brings about is that the
DisplacementField type is defined as
itk::Imageitk::Vector<float,3,3> but the transform parameter
type is double, so I changed type DisplacementField type so it
was compatible with the Transform type.

See https://www.icts.uiowa.edu/jira/browse/PREDICTIMG-1667

The GenericTransformImage template function isn't used that many
places. In most it's clear that either a DeformationField or
a Transform is passed in. A few places in BRAINSCut it looks like
both are passed in, but in practice only one or the other is
actually defined.

The way GenericTransformImage was actually written, if both a
transform and a displacement field are passed in, the transform
is ignored.  So I felt justified in enforcing that at the
point of call.  If needed, a DisplaceFieldTransform is created
and the Displacement Image is passed in.

The biggest 'hidden' change this brings about is that the
DisplacementField type is defined as
itk::Image<itk::Vector<float,3>,3> but the transform parameter
type is double, so I changed type DisplacementField type so it
was compatible with the Transform type.
Chaircrusher pushed a commit that referenced this pull request May 1, 2013
ENH: Remove DeformationField parameter from GenericTransformImage
@Chaircrusher Chaircrusher merged commit 8fce323 into BRAINSia:master May 1, 2013
@Chaircrusher Chaircrusher deleted the GenericTransformImage branch May 1, 2013 17:55
@Hui-Xie Hui-Xie mentioned this pull request Feb 12, 2017
@hjmjohnson hjmjohnson mentioned this pull request Jun 5, 2024
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.

None yet

1 participant