<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1426702212759_6502">Hi David,</div><div id="yui_3_16_0_1_1426702212759_6503"><br></div><div id="yui_3_16_0_1_1426702212759_6504" dir="ltr">To clarify.</div><div id="yui_3_16_0_1_1426702212759_6505" dir="ltr">Since "the bounds of avolume start and end in the center of the corner voxels.", I would have to expand the bbox in all directions by 0.5*spacing to get the intersections with the 'outside' planes of the image? And the distance between one 'outside' and its opposite 'outside' would be 100 times the spacing?<br></div><div id="yui_3_16_0_1_1426702212759_6508" dir="ltr"><br></div><div id="yui_3_16_0_1_1426702212759_6507" dir="ltr">Maarten<br></div><div id="yui_3_16_0_1_1426702212759_6506"><span></span></div> <br><div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> On Wednesday, March 18, 2015 9:42 AM, David Gobbi <david.gobbi@gmail.com> wrote:<br> </font> </div> <br><br> <div class="y_msg_container"><div id="yiv4096440840"><div><div dir="ltr">Hi Maarten,<div><br clear="none"></div><div>If you used (0, 13, ...) then you'd get the wrong answer. The bounds of a</div><div>volume start and end in the center of the corner voxels. If the first voxel</div><div>is 0 and the last voxel is 99, then the real-world dimension of the volume is</div><div>99 times the spacing.</div><div><br clear="none"></div><div>A voxel is a data point. Emphasis on "point". If you have a series of data</div><div>points, anything before the first point or after the last point is outside of the</div><div>bounds of the data points.</div><div><br clear="none"></div><div> - David </div><div><br clear="none"></div><div class="yiv4096440840yqt9734692183" id="yiv4096440840yqt74838"><div><div class="yiv4096440840gmail_extra"><br clear="none"><div class="yiv4096440840gmail_quote">On Wed, Mar 18, 2015 at 7:23 AM, Maarten Beek via vtkusers <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:vtkusers@vtk.org" target="_blank" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>></span> wrote:<br clear="none"><blockquote class="yiv4096440840gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div dir="ltr">Hi all,</div><div dir="ltr"><br clear="none"></div><div dir="ltr">For an image with dims = (100, 100, 100) and spacing = (0.13, 0.13, 0.13), vtkImageData::GetBounds() returns</div><div dir="ltr">(0, 12.87, 0, 12.87, 0, 12.87)</div><div dir="ltr"><br clear="none"></div><div dir="ltr">If I use these bounds as argument in vtkBox::IntersectWithLine, do I get the correct intersections?</div><div dir="ltr">Or should I use (0, 13, 0, 13, 0, 13) for the bounds?</div><div dir="ltr"><br clear="none"></div><div dir="ltr">Thanks - Maarten<br clear="none"></div></div></div><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div></div></div></div><br><br></div> </div> </div> </div></div></body></html>