scikit-image fft

Christopher spagodo at gmail.com
Thu Oct 16 19:14:59 EDT 2014


Thanks Juan for the response!

It appears that the problem was that numpy fft returns a complex array, 
which gave an error when trying to display it. By extracting only the real 
parts of the array, it seems to work fine. This is a sample of what I was 
trying to do:

import numpy
from numpy import fft
from skimage import io, data
import matplotlib.pyplot as plot


im = data.coffee()
f = fft.fft2(im)
f2 = fft.ifft2(f)
r = numpy.real(f2)
plot.imshow(r)
plot.show()




Thanks again

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20141016/b035f86e/attachment.html>


More information about the scikit-image mailing list