Differences between revisions 6 and 7
Revision 6 as of 2009-02-04 20:55:29
Size: 698
Comment:
Revision 7 as of 2009-02-04 20:55:46
Size: 701
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
What follows is a very simply demonstration of using the Transform object to transform EMData (image) objects. A very thorough explanation using the Transform is presented in [[Eman2TransformInPython|Using the EMAN2 Transform class]] and you are encouraged to at least be aware of that page's existence. 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 [[Eman2TransformInPython|Using the EMAN2 Transform class]] and you are encouraged to at least be aware of that page's existence.

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.

[someone@localhost]$ e2.py

Welcome to EMAN2
Prompt provided by IPython
Enter '?' for ipython help

In [3]:  e = EMData()

In [4]:  e.set_size(32,32,32)

In [5]:  e.process_inplace('testimage.axes')

In [6]:  t = Transform({"type":"eman","az":45,"alt":90})

In [7]:  t.set_trans(1,-2,5)

In [8]:  t.set_scale(1)

In [9]:  e.transform(t)

In [9]:  display(e)

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