Difference between revisions of "Documentation/Nightly/FAQ/Viewing and Resampling"

From Slicer Wiki
Jump to: navigation, search
m
Line 1: Line 1:
 +
<noinclude>{{documentation/versioncheck}}</noinclude>
 +
<noinclude>__TOC__
 +
={{#titleparts: {{PAGENAME}} | | -1 }}=</noinclude><includeonly>
 
='''User FAQ: {{{1}}}'''=
 
='''User FAQ: {{{1}}}'''=
 
</includeonly>
 
</includeonly>

Revision as of 17:27, 30 April 2014

Home < Documentation < Nightly < FAQ < Viewing and Resampling


For the latest Slicer documentation, visit the read-the-docs.


Viewing and Resampling

What coordinate systems does Slicer use?

See this documentation of Slicer coordinate systems.

How can I use the reformat widget view to resample my images?

You can do something like this in the python console:

red = getNodes('vtkMRMLSliceNode*')['Red']
m = vtk.vtkMatrix4x4()
m.DeepCopy(red.GetSliceToRAS())
m.Invert()

t = slicer.vtkMRMLLinearTransformNode()
t.SetAndObserveMatrixTransformToParent(m)
 

Then put your volume under “t" or provide "t" as the transform to one of the Resample modules.