<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Mengqiu,<div><br></div><div>ITK has all of it's index, point, offsets, vectors etc.. organized as {x,y,z}. These filters follow the same standard convention.</div><div><br></div><div>The order of indices, and be a rather confusing and complicated subject. The standard expectation for matrices and image are different. And then there is how the data is stored in row-major or column major.</div><div><br></div><div><br></div><div>I recently read a section of the numpy documentation that was very neutral and informative of the subject. Hopefully it'll shed some light on the subject:</div><div><br></div><div><a href="http://docs.scipy.org/doc/numpy/reference/internals.html#multidimensional-array-indexing-order-issues">http://docs.scipy.org/doc/numpy/reference/internals.html#multidimensional-array-indexing-order-issues</a></div><div><br></div><div>Brad</div><div><br><div><div>On Feb 17, 2012, at 6:47 AM, Mengqiu Tian wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Cory and David,<br><br>Thanks for reply.<br>Actually, I tried both MirrorPadImageFilter and ZeroFluxNeumannPadImageFilter. Unfortunately, in MirrorPadImageFilter, the 0 indices width but in ZeroFluxNeumannPadImageFilter it behaves opposite way.<br>
Regarding the general view of image, I think 0 indices height would be more reasonable, similar as behavior in Matlab.<br>It is ok if it would not be corrected, I just swap my codes :)<br><br>Regards,<br>Mengqiu<br><br><br>
<div class="gmail_quote">On Fri, Feb 17, 2012 at 3:43 AM, Cory Quammen <span dir="ltr"><<a href="mailto:cquammen@cs.unc.edu">cquammen@cs.unc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for the report. I think the figures for the other<br>
PadImageFilter filters are wrong. The indices 0 and 1 should be<br>
swapped in the figures.<br>
<br>
David, I think you made these figures originally. Do you concur that<br>
the indices should be swapped in the figures?<br>
<br>
Thanks,<br>
Cory<br>
<div><div class="h5"><br>
On Thu, Feb 16, 2012 at 12:03 PM, Mengqiu Tian <<a href="mailto:tianmengqiu@gmail.com">tianmengqiu@gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> I am using itkZeroFluxNeumannPadImageFilter.h to pad my image, here I found<br>
> a bug.<br>
><br>
> According to other PadImageFilter, take MirrorPadImageFilter for example:<br>
><br>
> <a href="http://www.itk.org/Doxygen/html/classitk_1_1MirrorPadImageFilter.html" target="_blank">http://www.itk.org/Doxygen/html/classitk_1_1MirrorPadImageFilter.html</a><br>
><br>
> lowerBound[0] and upperBound[0] should correspond to vertical direction.<br>
><br>
> But ZeroFluxNeumannPadImageFilter does not consist with this behavior.<br>
> lowerBound[0] and upperBound[0] corrspond to horizontal direction in this<br>
> case.<br>
> Although it is not a big deal, it might cause misunderstanding. I think it<br>
> is better to correct it.<br>
><br>
> Hope it helps. :)<br>
><br>
> Regards,<br>
> Mengqiu Tian<br>
><br>
</div></div>> _____________________________________<br>
> Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Cory Quammen<br>
Research Associate<br>
Department of Computer Science<br>
The University of North Carolina at Chapel Hill<br>
</font></span></blockquote></div><br>
_____________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://www.kitware.com/products/protraining.html<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>
<span class="Apple-style-span" style="font-size: 12px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">========================================================</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Bradley Lowekamp<span class="Apple-converted-space"> </span><span class="Apple-converted-space"> </span></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Medical Science and Computing for</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Office of High Performance Computing and Communications</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">National Library of Medicine<span class="Apple-converted-space"> </span></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; "><a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a></font></p><br class="Apple-interchange-newline"></span></div></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>