Size: 429
Comment:
|
Size: 702
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
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 a Fourier transform on it: | 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: |
Line 14: | Line 14: |
In [5}: e.do_fft_inplace() | In [5]: e.do_fft_inplace() |
Line 17: | Line 17: |
You now have an EMData object (e) in real/imaginary format. To convert the image to amplitude/phase format simply do the following {{{ In [6]: e.ri2ap() In [7]: e.get(2,0,0) Out[7]: 62.0 In [8]: e.get(3,0,0) Out[8]: 3.1415927410125732 }}} |
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:
[someone@localhost]$ e2.py Welcome to EMAN2 Prompt provided by IPython Enter '?' for ipython help In [3]: e = EMData(32,32,32) In [4]: e.process_inplace("testimage.axes") In [5]: e.do_fft_inplace()
You now have an EMData object (e) in real/imaginary format. To convert the image to amplitude/phase format simply do the following
In [6]: e.ri2ap() In [7]: e.get(2,0,0) Out[7]: 62.0 In [8]: e.get(3,0,0) Out[8]: 3.1415927410125732