[prev in list] [next in list] [prev in thread] [next in thread]
List: vtk-developers
Subject: [vtk-developers] Reg:How to set Orientation for resliced coronal and sagital image
From: Pandia raja <pandia005 () gmail ! com>
Date: 2016-09-08 13:45:49
Message-ID: CAMMPchkY48CDbOoK5zbxuDpFY7eumEbL6ccZ3Rg4pknz1xA3cg () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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
[Attachment #5 (text/html)]
<div dir="ltr"><div> Hi,</div><div><span class="gmail-Apple-tab-span" \
style="white-space:pre"> </span> 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. </div><div><br></div><div><br></div><div> \
<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>vtkImageReslice \
coronalReslice= new vtkImageReslice();</div><div><span class="gmail-Apple-tab-span" \
style="white-space:pre"> </span> coronalReslice.SetInputConnection ( \
reader.GetOutputPort () );</div><div><span class="gmail-Apple-tab-span" \
style="white-space:pre"> </span>coronalReslice.SetOutputDimensionality ( 2 \
);</div><div><span class="gmail-Apple-tab-span" \
style="white-space:pre"> </span>coronalReslice.SetResliceAxes ( coronalResliceAxes \
);</div><div><span class="gmail-Apple-tab-span" \
style="white-space:pre"> </span>coronalReslice.SetInterpolationModeToNearestNeighbor \
();</div><div><span class="gmail-Apple-tab-span" \
style="white-space:pre"> </span>coronalReslice.SetOutputSpacing ( spacing \
);</div><div><span class="gmail-Apple-tab-span" \
style="white-space:pre"> </span>coronalReslice.SetOutputExtent ( xyminmax \
);</div><div><br></div><div><span class="gmail-Apple-tab-span" \
style="white-space:pre"> </span>vtkDICOMWriter writer = new vtkDICOMWriter \
();</div><div><br></div><div><span class="gmail-Apple-tab-span" \
style="white-space:pre"> </span>writer.SetInputConnection ( \
coronalReslice.GetOutputPort () );</div><div><span class="gmail-Apple-tab-span" \
style="white-space:pre"> </span>writer.SetFilePattern (fileName );</div><div><span \
class="gmail-Apple-tab-span" style="white-space:pre"> </span>writer.Write \
();</div><div>Thanks,</div><div>Pandiyan</div></div>
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Search the list archives at: http://markmail.org/search/?q=vtk-developers
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtk-developers
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic