擅长:python、mysql、java
<p><code>V0fftdirect = np.fft.fft2(V0)</code>完成了任务:</p>
<pre><code>In [93]: import numpy as np
In [94]: V0 = np.random.random((3,128,128))
In [95]: V0fftfor = []
In [96]: for i in xrange(V0.shape[0]):
...: V0fftfor.append(np.fft.fftn(V0[i]))
...:
In [97]: V0fftdirect = np.fft.fft2(V0)
In [98]: np.amax(np.abs(V0fftfor - V0fftdirect))
Out[98]: 0.0
</code></pre>