Correction <br>GetElement(0,3) , GetElement(1,3) , GetElement(2,3)<br><br><div class="gmail_quote">On Wed, Mar 14, 2012 at 4:48 PM, Darshan Pai <span dir="ltr">&lt;<a href="mailto:darshanpai@gmail.com">darshanpai@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I understand . I see what you mean . <br>Though I haven&#39;t tried it for the oblique reslice , but maybe this procedure can work with your requirement . <br>
So I assume that you do have the resliceaxes which you initially acquired from the Widget.<br>
<br>To get the other slices you only have to move along the normal of the slice . So everytime you translate along the normal , you change the <br>resliceaxis values . For translation you will need to add (or subtract) the value from <br>

GetElement(3,0) , GetElement(3,1) , GetElement(3,2) by the amount you moved along the normal . Note that as you translate you should be aware of the spacing between slices .<br><br>Maybe someone else can comment . <br><div class="HOEnZb">
<div class="h5"><br>
<br><div class="gmail_quote">On Wed, Mar 14, 2012 at 5:02 AM, Miguel Sotaquirá <span dir="ltr">&lt;<a href="mailto:msotaquira@gmail.com" target="_blank">msotaquira@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

That method (vtkImagePlaneWidget-&gt;GetResliceOutput()) would be useful for extracting the initial slice; for subsequent slices I don&#39;t want to render each plane location in order to extract the corresponding slice with GetResliceOutput, I&#39;d prefer to use vtkImageReslice.<span><font color="#888888"><div>


<br></div></font></span><div><span><font color="#888888">Miguel</font></span><div><div><br><br><div class="gmail_quote">2012/3/14 Darshan Pai <span dir="ltr">&lt;<a href="mailto:darshanpai@gmail.com" target="_blank">darshanpai@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Why dont you just retrieve the Reslice using .. GetResliceOutput()<br><br><div class="gmail_quote"><div><div>On Wed, Mar 14, 2012 at 2:17 AM, Miguel Sotaquirá <span dir="ltr">&lt;<a href="mailto:msotaquira@gmail.com" target="_blank">msotaquira@gmail.com</a>&gt;</span> wrote:<br>



</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hello everybody,<div><br></div><div>I have a 3D volume and I want to extract a set of 2D  radial oblique slices. In order to do so I need to define my initial slice, in terms of origin, normal and axes; this initial slice is obtained manually (using the same approach described in Examples/GUI/Qt/FourPaneViewer/ of vtk&#39;s devel version) from vtkImagePlaneWidget-&gt;GetResliceAxes(), which gives me a vtkMatrix4x4 &quot;matrix&quot; containing the origin and axes that define this slice (plane). I want to use this information to obtain an oblique slice from the 3D volume using this pipeline:</div>




<div><br></div><div><div>   vtkSmartPointer&lt;vtkImageReslice&gt; reslicer = vtkSmartPointer&lt;vtkImageReslice&gt;::New();</div></div><div>   reslicer-&gt;SetInputConnection( this-&gt;reader-&gt;GetOutputPort() );               // The input being the 3D volume</div>




<div>   reslicer-&gt;SetOutputDimensionality(2);</div><div>   reslicer-&gt;SetOutputSpacing...</div><div>   ...</div><div>   ...</div><div>   reslicer-&gt;SetResliceAxes(matrix);</div><div><br></div><div>Where &quot;matrix&quot; in the last line of code is obtained  with vtkImagePlaneWidget-&gt;GetResliceAxes(). I&#39;m having troubles with this last line, since the 2D slice obtained does not contain any data (all black) and I think it is because &quot;matrix&quot; and my 3D volume do not share the same coordinate space.</div>




<div><br></div><div>How to obtain the correct slice orientation within my 3D volume, using the world coordinates of the reslice matrix extracted from vtkImagePlaneWidget?</div><div><br></div><div>Thanks for your suggestions,</div>




<div>Miguel</div>
<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 <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>
</blockquote></div><br></div></div></div>
</blockquote></div><br>
</div></div></blockquote></div><br>