<p dir="ltr">David,</p>
<p dir="ltr">Thanks for the clarification.<br>
Regards,</p>
<p dir="ltr">Marco</p>
<div class="gmail_quote">Il 03/lug/2015 08:09 PM, "David Gobbi" <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes, the slab is centered wrt the reslice plane.  So if SlabNumberOfSlices is even, then the two middle "slab" slices will be on either side of the reslice plane (+0.5 above and -0.5 below).<div><br></div><div>Though this isn't quite related, note that it is possible to change the spacing between the "slab" slices with SetSlabSliceSpacingFraction().</div><div><br></div><div> - David </div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 3, 2015 at 3:51 AM, Marco Sambin <span dir="ltr"><<a href="mailto:m.sambin@gmail.com" target="_blank">m.sambin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>with reference to this old question of mine (see below), I would like a clarification:</div><div><br></div><div>suppose that the output z-spacing is set to 1 mm on my vtkImageReslice instance. Also, suppose that I call SetSlabNumberOfSlices(2) on my reslicer.</div><div>Where will the 2 slices used to compute the slab image be located w.r.t. the position of my reslice plane? Will the first slice be 0.5 mm "above" and the second slice be 0.5 mm "below" my reslice plane? In other words, will the slices always be "centered" w.r.t. the position of my reslice plane?</div><div><br></div><div>Maybe this is a silly question, but I like to exactly understand this point.</div><div><br></div><div>Thanks in advance for the clarification.</div><div>Regards,</div><div><br></div><div>Marco</div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 25, 2013 at 9:59 PM, Marco Sambin <span dir="ltr"><<a href="mailto:m.sambin@gmail.com" target="_blank">m.sambin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi David,</p>
<p dir="ltr">Thanks for the clarification.<br>
I will test this soon.<br>
Regards,</p>
<p dir="ltr">Marco<br>
</p>
<div class="gmail_quote">Il giorno 25/mar/2013 14:24, "David Gobbi" <<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Marco,<br>
<br>
The way it works is this: vtkImageReslice is creating the slab by<br>
extracting N samples and combining them, where the distance between<br>
the samples is set by the third argument to SetOutputSpacing().  If<br>
the SlabNumberOfSlices is N, then the slab thickness is<br>
(N-1)*spacing[2] where spacing[2] is the z-spacing set with<br>
SetOutputSpacing(spacing[0],spacing[1],spacing[2]).<br>
<br>
Summary: thickness = (N - 1)*spacing[2]<br>
<br>
Slab mode is equivalent to extracting N slices and combining them.<br>
<br>
 - David<br>
<br>
On Mon, Mar 25, 2013 at 6:01 AM, Marco Sambin <<a href="mailto:m.sambin@gmail.com" target="_blank">m.sambin@gmail.com</a>> wrote:<br>
> Hi all.<br>
> I am looking at implementing thick reformats through vtkImageReslice.<br>
><br>
> Even after looking at the documentation, I did not fully understand the<br>
> SetSlabNumberOfSlices(int) method. For instance, in cases of an oblique<br>
> reformat, what is considered to be a "slice"? What defines the "thickness"<br>
> of a single slice, thus determining the total slab thickness resulting from<br>
> calling SetSlabNumberOfSlices(X)?<br>
><br>
> I was expecting a call like SetSlabThickness(...), rather than<br>
> SetSlabNumberOfSlices(...).<br>
><br>
> I would appreciate any comment on this.<br>
> Thanks in advance.<br>
><br>
> Marco</blockquote></div></blockquote></div></div></div></div></blockquote></div><br></div></div></div>
</blockquote></div>