Differences between revisions 9 and 10
Revision 9 as of 2009-02-04 21:10:42
Size: 708
Comment:
Revision 10 as of 2009-02-04 21:10:50
Size: 709
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
[someone@localhost] e2.py [someone@localhost]# e2.py

What follows is a very simply demonstration of using the Transform object to transform EMData (image) objects. A very thorough explanation of using the Transform is presented in Using the EMAN2 Transform class and you are encouraged to at least be aware of that page's existence.

   1 [someone@localhost]# e2.py
   2 
   3 Welcome to EMAN2
   4 Prompt provided by IPython
   5 Enter '?' for ipython help
   6 
   7 In [3]:  e = EMData()
   8 
   9 In [4]:  e.set_size(32,32,32)
  10 
  11 In [5]:  e.process_inplace('testimage.axes')
  12 
  13 In [6]:  t = Transform({"type":"eman","az":45,"alt":90})
  14 
  15 In [7]:  t.set_trans(1,-2,5)
  16 
  17 In [8]:  t.set_scale(1)
  18 
  19 In [9]:  e.transform(t)
  20 
  21 In [9]:  display(e)

EMAN2/Tutorials/RotateTranslate (last edited 2015-05-04 18:17:02 by StephenMurray)