Hi,

I am looking for an elegant and fast way to fill the voids of a 2d array with 
neighbouring values. The array's size can be up to (1000, 1000) and its values 
are slowly varying around a mean value. What I call voids are values which are 
far from the mean value (+- 80%). A void usually extends over some adjacent 
coordinates. 

Currently I am using 

tmp = N.ma.array(tmp, tmp<threshold)
data[tmp.mask] = tmp.mean()

which moves the voids closer to the mean value but which is still far from 
beeing a smooth interpolation.

Regards, Christian


_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to