[Insight-developers] itk::ImageBase::TransformIndexToPhysicalPoint/TransformPointToContinuousIndex ignores spacing?

kent williams norman-k-williams at uiowa.edu
Tue Mar 17 13:46:55 EDT 2009


Sorry to keep posting up my moment to moment travails with the
WarpImageFilter, I'll shut up after this post.

Yes, it appears that the spacing is in fact being honored in the conversion
from/to physical points.

My problem came not from spacing being ignored, but apparently, rounding
issues, or 'center of voxel' issues, or something. To wit

Output Image: size = { 16, 16, 16 }, spacing = { 1, 1, 1 }
Deformation Field: size = { 8, 8, 8 }, spacing = { 2, 2, 2 }

result of Output->TransformIndexToPhysicalPoint = { 15, 0, 0 }
result of DefField->TranformPhysicalPointToContinuousIndex = { 7.5, 0, 0 }
result of DefField->IsInsideBuffer({7.5, 0, 0 }) = FALSE.

That is because the maximum continuous index in the DefField is { 7, 0, 0 }




Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.




More information about the Insight-developers mailing list