Size: 451
Comment:
|
Size: 478
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
Image transforms are achieved using the Transform class. | Image transforms are achieved using the [[Eman2TransformInPython|Transform]] class. |
Line 16: | Line 16: |
In [6]: t = Transform({"type":"eman":"az":45,"alt":90}) | In [6]: t = Transform({"type":"eman","az":45,"alt":90}) |
Image transforms are achieved using the Transform class.
[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)