[SciPy-user] PIL and gaussian_filter?
Johannes Strömberg
johannes.stromberg at gmail.com
Thu May 22 15:42:01 EDT 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
faster?
# in = array
# gaussian = array
# threshold = int
# percent = int
diff = in - gaussian
diff = numpy.where(diff > threshold,diff,0)
out = imdata + diff*(float(percent)/100)
/Johannes
More information about the SciPy-User
mailing list