[ITK Community] [Insight-users] PadImageFilter and image origin?
Cory Quammen
cory.quammen at kitware.com
Mon Mar 3 08:58:17 EST 2014
Loic,
Yes, I think you are right. I forgot that the origin specifies the
position of the zeroth index, not the index of the image's largest
region.
Best,
Cory
On Mon, Mar 3, 2014 at 8:35 AM, Loic Le Folgoc <loic.itk at gmail.com> wrote:
> Hi,
>
> If the origin (physical coordinates of index (0,0)) has been kept the same,
> then it's likely the starting index of the padded image
> (GetLargestPossibleRegion().GetIndex()) that is modified accordingly. I'm
> pretty sure this filter works as intended but I don't have the code under my
> eyes to double-check.
>
> However, I do think there are a couple of filters with possibly suspicious
> handling of the output starting index/origin. The
> InverseDisplacementFieldImageFilter comes to mind: I could be wrong, but it
> doesn't seem to handle the starting index of the output image at all, which
> then defaults to 0. Of course the user is free to change the spacing, origin
> and size of the output domain, but I guess the expected default behaviour
> would be (that of most ImageToImage filters) for the output to replicate the
> region/spacing/origin of the input to avoid possible loss of consistency.
>
> Loïc
>
> Le 03/03/2014 12:03, Cory Quammen a écrit :
>
> Arnaud,
>
> That sounds like a bug. I would think the padding should affect the
> origin so as to keep the original image content in the padded image to
> be at the same physical location as the input.
>
> Cory
>
> On Mon, Mar 3, 2014 at 5:22 AM, Arnaud Gelas <arnaudgelas at gmail.com> wrote:
>
> Hi all,
>
> Is it normal that the output image of a PadImageFilter (and derivatives) has
> the same origin as the input?
>
> I just wonder if it is a bug, or not...
>
> Thanks,
> Arnaud
> _____________________________________
> 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://www.itk.org/mailman/listinfo/insight-users
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>
> _____________________________________
> 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://www.itk.org/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://www.itk.org/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://www.itk.org/mailman/listinfo/insight-users
More information about the Community
mailing list