[SciPy-user] shift FFT2D...

fred fredmfp at gmail.com
Wed May 9 17:23:36 EDT 2007


Francesc Altet a écrit :
> Ops. I was wrong.
Yes ;-)
>  I think what you want is something like:
>   
No ;-)))

I want this:

from scipy import *
m, n = 10, 10
a = zeros((m,n))
p, q = 4, 4
b = ones((p,q))
a[m/2-p/2:m/2+p/2,n/2-q/2:n/2+q/2] = b
print a

But once again, I was wondering if a builtin function does not already 
exists for that.

Thanks anyway.


Cheers,

-- 
http://scipy.org/FredericPetit




More information about the SciPy-User mailing list