[Matplotlib-users] Why so different from Matlab to matplotlib (fft2 question)?

2007-01-26 Thread Jay Parlar
I'm trying to learn about 2D fourier transforms and k-space right now. To do this, I'm using the image at http://django.jayparlar.com/4kSnake.png In Matlab, I run the following code: Im = double(imread('4kSnake.png')); FT = fftshift(fft2(Im)); FT_Amp = abs(FT); minAmp = min(min(FT_Amp)); maxAmp

Re: [Matplotlib-users] Why so different from Matlab to matplotlib (fft2 question)?

2007-01-26 Thread John Hunter
Jay == Jay Parlar [EMAIL PROTECTED] writes: Jay One issue might be the use of minAmp and maxAmp in the Jay Matlab code, and no equivalent in the Python. I thought maybe Jay the vmin/vmax arguments to 'imshow' might work, but they Jay don't make much of a difference. vmin and

Re: [Matplotlib-users] Why so different from Matlab to matplotlib (fft2 question)?

2007-01-26 Thread Darren Dale
On Friday 26 January 2007 11:14, John Hunter wrote: Jay == Jay Parlar [EMAIL PROTECTED] writes: Jay One issue might be the use of minAmp and maxAmp in the Jay Matlab code, and no equivalent in the Python. I thought maybe Jay the vmin/vmax arguments to 'imshow' might work, but

Re: [Matplotlib-users] Why so different from Matlab to matplotlib (fft2 question)?

2007-01-26 Thread John Hunter
Darren == Darren Dale [EMAIL PROTECTED] writes: Darren vmin and vmax dont seem to have any effect on the Darren resulting image, at least on my machine with the most Darren recent svn. I haven't looked at his data or the output if fftshift. if vmin and vmax do nothing, mpl is

Re: [Matplotlib-users] Why so different from Matlab to matplotlib (fft2 question)?

2007-01-26 Thread Jay Parlar
On 1/26/07, John Hunter [EMAIL PROTECTED] wrote: Darren == Darren Dale [EMAIL PROTECTED] writes: Darren vmin and vmax dont seem to have any effect on the Darren resulting image, at least on my machine with the most Darren recent svn. I haven't looked at his data or the output

Re: [Matplotlib-users] Why so different from Matlab to matplotlib (fft2 question)?

2007-01-26 Thread Jay Parlar
On 1/26/07, John Hunter [EMAIL PROTECTED] wrote: Jay == Jay Parlar [EMAIL PROTECTED] writes: Jay That's the problem, I believe. 'imread' in mpl always reads Jay images in as MxNx4, while Matlab will check if the image is Jay BW and just do MxN. Is there any way to force MxN