<div dir="ltr">Hi Simon,<div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 8, 2014 at 3:56 PM, Simon Wimmer <span dir="ltr"><<a href="mailto:wimmersimon@gmail.com" target="_blank">wimmersimon@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>My direction matrix is simply the identity.</div>
<div>So I would guess that in this case <span style="font-size:12.666666984558105px;font-family:arial,sans-serif">filter-></span><span style="font-size:12.666666984558105px;font-family:arial,sans-serif">SetDirectionCollapseToIndentit</span><span style="font-size:12.666666984558105px;font-family:arial,sans-serif">y() and </span><span style="font-size:12.666666984558105px;font-family:arial,sans-serif">filter-></span><span style="font-size:12.666666984558105px;font-family:arial,sans-serif">SetDirectionCollapseToSubmatrix</span><span style="font-size:12.666666984558105px;font-family:arial,sans-serif">() should do the same?</span></div>

<div><br></div></div></blockquote><div><br></div><div>It should...yes... I think.</div><div><br></div><div>mm, maybe we need to take a closer look at the way the Submatrix is being composed:</div><div><br></div><div><a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Core/Common/include/itkExtractImageFilter.hxx#L223">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Core/Common/include/itkExtractImageFilter.hxx#L223</a><br>
</div><div><br></div><div><a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Core/Common/include/itkExtractImageFilter.hxx#L188">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Core/Common/include/itkExtractImageFilter.hxx#L188</a><br>
</div><div><br></div><div><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">
<div></div><div>Taking out <span style="font-family:arial,sans-serif;font-size:12.727272033691406px"> </span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">InPlaceOn() sounds reasonable.</span></div>
</div></blockquote><div><br></div><div>OK</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">
<div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Regarding the spacing issue my intuition would have been that the extraction of course destroys the information for the projection direction,</span><br>
</div>
<div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">but should preserve it for the other ones. Is that correct?</span></div></div></blockquote><div><br></div><div>Yes, that's correct.</div>
<div><br></div><div>So, if the initial 3D image had spacing values</div><div><br></div><div>        1.7,  2.9,   3.1</div><div><br></div><div>in X, Y, Z respectively,</div><div><br></div><div><br></div><div>and you collapse Z,</div>
<div>you should end up with a 2D image with spacing values</div><div><br></div><div>         1.7,   2.9</div><div><br></div><div>in X and Y respectively.</div><div><br></div><div><br></div><div>  HTH</div><div><br></div><div>
<br></div><div>      Luis</div><div> </div></div></div></div>