Re: [ITK-users] Error encountered when padding: boundary condition is ITK_NULLPTR

Matt McCormick <[email protected]>
Newsgroups gmane.comp.lib.itk.user
Message-ID <CALzTN-T-yWyYaQSmsk40kVQgj46KSFbaCyjAxCXJmNxJf=arAA@mail.gmail.com>
Hi Marie,

The relationship between pixel / index coordinates and physical space
is described in the ITK Software Guide:

  https://itk.org/ITKSoftwareGuide/html/Book1/ITKSoftwareGuide-Book1ch4.html#x38-470004.1

There are methods on itk::Image to go between the two,
TransformIndexToPhysicalPoint and TransformPhysicalPointToIndex,

  https://itk.org/Doxygen/html/classitk_1_1ImageBase.html#ab003313ba1a078d89a832dc0a35d2efa
  https://itk.org/Doxygen/html/classitk_1_1ImageBase.html#af4a7c9c3787e9fdafbaaade2e02efa25

Hope this helps,
Matt

On Tue, Aug 29, 2017 at 8:41 AM, avazuila <mbrunet-6Y3FvNI62YN0EDqhht/[email protected]> wrote:
> Hi Matt,
>
> getBounds() returns physical coordinates. Do you know how I could get the
> index coordinates? I am having a hard time managing to understand what
> indexes are for and I can't see a getIndex() method in my code (I'm not the
> author of these methods).
>
> Thanks and regards,
>
> Marie
>
>
>
> --
> View this message in context: http://itk-users.7.n7.nabble.com/Error-encountered-when-padding-boundary-condition-is-ITK-NULLPTR-tp38654p38656.html
> Sent from the ITK - Users mailing list archive at Nabble.com.
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> 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://public.kitware.com/mailman/listinfo/insight-users
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

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://public.kitware.com/mailman/listinfo/insight-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.