Size: 1306
Comment: converted to 1.6 markup
|
← Revision 11 as of 2009-02-04 21:08:46 ⇥
Size: 1337
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
{{{ [someone@localhost]$ e2.py |
{{{#!python [someone@localhost] e2.py |
Line 20: | Line 20: |
{{{ | {{{#!python |
Line 29: | Line 29: |
{{{ | {{{#!python |
Line 46: | Line 46: |
{{{ | {{{#!python |
Changing image format from real/imaginary to amplitude/phase format in EMAN2 is a straightforward procedure. To illustrate the process start with a test image and perform an inplace Fourier transform on it as follows:
You now have an EMData object (e) in real/imaginary format. You can verify that the image is in this format by calling the function is_ri, for example try:
To convert the image to amplitude/phase format simply do the following:
Note that it's relatively straightforward to access values from the EMData object (e) using the get function call, and that we have verified the EMData object is in amplitude/phase format using the function is_ri, as demonstrated above. Finally, you can convert back to to real/imaginary format by doing: