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's devel version) from vtkImagePlaneWidget->GetResliceAxes(), which gives me a vtkMatrix4x4 "matrix" 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<vtkImageReslice> reslicer = vtkSmartPointer<vtkImageReslice>::New();</div></div><div> reslicer->SetInputConnection( this->reader->GetOutputPort() ); // The input being the 3D volume</div>
<div> reslicer->SetOutputDimensionality(2);</div><div> reslicer->SetOutputSpacing...</div><div> ...</div><div> ...</div><div> reslicer->SetResliceAxes(matrix);</div><div><br></div><div>Where "matrix" in the last line of code is obtained with vtkImagePlaneWidget->GetResliceAxes(). I'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 "matrix" 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>