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

From Slicer Wiki
Jump to: navigation, search
Line 7: Line 7:
  
 
==How can I use the reformat widget view to resample my images? ==
 
==How can I use the reformat widget view to resample my images? ==
 +
 +
You can do something like this in the python console:
  
 
<pre>
 
<pre>
Line 14: Line 16:
 
  </pre>
 
  </pre>
  
Then invert “t” and put my original volume under “t”.
+
Then invert “t” and put my original volume under “t”.  Note that it is probably better to copy the matrix rather than observing SliceToRAS directly.

Revision as of 23:54, 24 June 2013

Home < Documentation < Nightly < FAQ < Viewing and Resampling

User FAQ: {{{1}}}

</includeonly>

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']
t = slicer.vtkMRMLLinearTransformNode()
t.SetAndObserveMatrixTransformToParent(red.GetSliceToRAS())
 

Then invert “t” and put my original volume under “t”. Note that it is probably better to copy the matrix rather than observing SliceToRAS directly.