Why dont you just retrieve the Reslice using .. GetResliceOutput()<br><br><div class="gmail_quote">On Wed, Mar 14, 2012 at 2:17 AM, Miguel Sotaquirá <span dir="ltr">&lt;<a href="mailto:msotaquira@gmail.com">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">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>_______________________________________________<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>