[SciPy-user] PIL and gaussian_filter?

Johannes Strömberg johannes.stromberg@gmail....
Thu May 22 14:42:01 CDT 2008

Thank you everyone,

Unfortunately I was wrong about the calculations I actually need to
perform. I have got a working set of operations for what I need (see
below), but it is awfully slow. Anybody got any idea on how to make it

# in = array
# gaussian = array
# threshold = int
# percent = int

diff = in - gaussian
diff = numpy.where(diff > threshold,diff,0)

out = imdata + diff*(float(percent)/100)


More information about the SciPy-user mailing list