<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I forgot to include the link to the code in my prior post:<div><br></div><div><a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Filtering/ImageGrid/include/itkPadImageFilter.hxx#L172">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Filtering/ImageGrid/include/itkPadImageFilter.hxx#L172</a><br><div><br></div><div><br></div><div><br></div><div><div><div>On Mar 3, 2014, at 8:35 AM, Loic Le Folgoc <loic.itk@gmail.com> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<div text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><font size="-1">Hi,<br>
<br>
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.<br>
<br>
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.<br>
<br>
Loïc <br>
</font><br>
Le 03/03/2014 12:03, Cory Quammen a écrit :<br>
</div>
<blockquote cite="mid:CAB5Fpx4TojRdE7EE1Ytrc1ybLorD66-CtfrYTCpdj1QDTHb5Yw@mail.gmail.com" type="cite">
<pre wrap="">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 <a class="moz-txt-link-rfc2396E" href="mailto:arnaudgelas@gmail.com"><arnaudgelas@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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 <a class="moz-txt-link-abbreviated" href="http://www.kitware.com/">www.kitware.com</a>
Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Kitware offers ITK Training Courses, for more information visit:
<a class="moz-txt-link-freetext" href="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</a>
Please keep messages on-topic and check the ITK FAQ at:
<a class="moz-txt-link-freetext" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a>
_______________________________________________
Community mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Community@itk.org">Community@itk.org</a>
<a class="moz-txt-link-freetext" href="http://public.kitware.com/cgi-bin/mailman/listinfo/community">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a>
</pre>
</blockquote>
<pre wrap="">_____________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com/">www.kitware.com</a>
Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Kitware offers ITK Training Courses, for more information visit:
<a class="moz-txt-link-freetext" href="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</a>
Please keep messages on-topic and check the ITK FAQ at:
<a class="moz-txt-link-freetext" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a>
</pre>
</blockquote>
<br>
</div>
_____________________________________<br>Powered by www.kitware.com<br><br>Visit other Kitware open-source projects at<br>http://www.kitware.com/opensource/opensource.html<br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://www.kitware.com/products/protraining.php<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.itk.org/mailman/listinfo/insight-users<br></blockquote></div><br></div></div></body></html>