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

From Slicer Wiki
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
='''User FAQ: {{{1}}}'''=
+
<noinclude>{{documentation/versioncheck}}</noinclude>
 +
<noinclude>__TOC__
 +
={{#titleparts: {{PAGENAME}} | | -1 }}=</noinclude><includeonly>
 +
{{#ifeq: {{#titleparts: {{PAGENAME}} | 3 }} | Documentation/{{documentation/version}}/Developers | | ='''User FAQ: {{{1}}}'''=}}
 
</includeonly>
 
</includeonly>
  
Line 5: Line 8:
  
 
See this [[Coordinate_systems|documentation of Slicer coordinate systems]].
 
See this [[Coordinate_systems|documentation of Slicer coordinate systems]].
 +
 +
== Is there a global coordinate system ? ==
 +
 +
There is no coordinate system in Slicer that is called Global. There is one called RAS. When you open Slicer, the middle of the pink wireframe box in the 3D view is at the origin of RAS. When a medical image is loaded in Slicer, it is oriented relative to the RAS coordinate system so the right hand of the patient is towards the R (first coordinate), the front of the patient is towards A (second coordinate). It's a right handed system.
 +
 +
To visualize "something", it is usually most convenient of to transform it to RAS, so it shows up relative to CT or MR images loaded in Slicer. When hovering the mouse over an image slice (2D), the RAS coordinates are displayed in the [[Documentation/{{documentation/version}}/Modules/DataProbe|Data Probe]] located in lower left corner of the Slicer UI.
 +
 +
Source: http://slicer-devel.65872.n3.nabble.com/Reference-System-tp4031501p4031503.html
  
 
==How can I use the reformat widget view to resample my images? ==
 
==How can I use the reformat widget view to resample my images? ==

Latest revision as of 16:21, 15 July 2015

Home < Documentation < Nightly < FAQ < Viewing and Resampling

For the stable Slicer documentation, visit the 4.10 page.

Viewing and Resampling

What coordinate systems does Slicer use?

See this documentation of Slicer coordinate systems.

Is there a global coordinate system ?

There is no coordinate system in Slicer that is called Global. There is one called RAS. When you open Slicer, the middle of the pink wireframe box in the 3D view is at the origin of RAS. When a medical image is loaded in Slicer, it is oriented relative to the RAS coordinate system so the right hand of the patient is towards the R (first coordinate), the front of the patient is towards A (second coordinate). It's a right handed system.

To visualize "something", it is usually most convenient of to transform it to RAS, so it shows up relative to CT or MR images loaded in Slicer. When hovering the mouse over an image slice (2D), the RAS coordinates are displayed in the Data Probe located in lower left corner of the Slicer UI.

Source: http://slicer-devel.65872.n3.nabble.com/Reference-System-tp4031501p4031503.html

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.