<div dir="ltr">Hi Maarten,<div><br></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></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></div><div> - David  </div><div><br></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 18, 2015 at 7:23 AM, Maarten Beek via vtkusers <span dir="ltr"><<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>></span> wrote:<br><blockquote class="gmail_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></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></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></div><div dir="ltr">Thanks - Maarten<br></div></div></div><br>
<br></blockquote></div><br></div></div></div>