[vtk-developers] Reg:How to set Orientation for resliced coronal and sagital image

Pandia raja pandia005 at gmail.com
Thu Sep 8 09:33:49 EDT 2016


 Hi,
    Am unable to get the Image Orientation (Patient)(0020,0037) in coronal
and sagital images after reslicing from Axial Images. How to set/get Image
Orientation for the Coronal/Sagital images. I am using the following code
to do the Reslicing.


    vtkImageReslice coronalReslice= new vtkImageReslice();
   coronalReslice.SetInputConnection ( reader.GetOutputPort () );
coronalReslice.SetOutputDimensionality ( 2 );
coronalReslice.SetResliceAxes ( coronalResliceAxes );
coronalReslice.SetInterpolationModeToNearestNeighbor ();
coronalReslice.SetOutputSpacing ( spacing );
coronalReslice.SetOutputExtent ( xyminmax );

vtkDICOMWriter writer = new vtkDICOMWriter ();

writer.SetInputConnection ( coronalReslice.GetOutputPort () );
writer.SetFilePattern (fileName );
writer.Write ();
Thanks,
Pandiyan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20160908/0e7a9814/attachment.html>


More information about the vtk-developers mailing list