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

Tom Vercauteren tom.vercauteren at gmail.com
Tue Mar 17 14:01:29 EDT 2009


Hi Kent,

You might already be aware of that bug:
http://www.itk.org/Bug/view.php?id=6558

Right now the use of rounding vs. truncation is not consistent within
the index <-> world transformations.

Tom

On Tue, Mar 17, 2009 at 18:46, kent williams
<norman-k-williams at uiowa.edu> wrote:
> 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.
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>


More information about the Insight-developers mailing list