MantisBT - ITK
View Issue Details
0008346ITKpublic2009-01-05 22:432010-10-21 12:32
Hans Johnson 
kentwilliams 
highmajoralways
closedfixed 
ITK-3-10 
 
0008346: itkWarpImageFilter must have similar API to itkResampleImageFilter

I’ve been doing some code refactorings to make sure that whenenver an itkResampleImageFilter is used that Origin/Spacing/Direction/Size/StartIndex are all set. While looking at the code, it occurred to me that the itkWarpImageFilter should also follow the same semantics as the ResampleImageFilter and provide a very similar interface.

In particular, the itkWarpImageFilter does not currently allow you to set the OutputStartIndex, and it also does not contain a member function called SetOutputParametersFromImage.

itkWarpImageFilter only works properly when output image has same physical space as output image.
A conversation with Luis Ibanez and Jim Miller resulted in consensus that the following actions should be taken:

1) Add SetSize and SetOutputStartIndex and SetOutputParametersFromImage member functions
2) Determine if outputImage and DeformationFeild have same physical characterisitics (i.e start index, size, spacing, origin, and direction)
   a) If YES: use current algorithm
   b) If NO: need to use trilinear interpolation of the deformation field at the physical coordinates of the voxels in the outputImage.


No tags attached.
related to 0008950assigned brian avants itkWarpVectorImageFilter must have similar API to itkResampleImageFilter 
Issue History
2009-01-05 22:43Hans JohnsonNew Issue
2009-03-05 15:04Tom VercauterenNote Added: 0015574
2009-03-10 20:11Hans JohnsonStatusnew => assigned
2009-03-10 20:11Hans JohnsonAssigned To => kentwilliams
2009-03-26 17:21kentwilliamsStatusassigned => resolved
2009-03-26 17:21kentwilliamsResolutionopen => fixed
2009-04-29 20:11Hans JohnsonRelationship addedrelated to 0008950
2010-10-21 12:32Gabe HartStatusresolved => closed

Notes
(0015574)
Tom Vercauteren   
2009-03-05 15:04   
The exact same problem appears in WarpVectorImageFilter. If a patch is committed for this bug, it should be propagated to WarpVectorImageFilter.