Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
HELP: replace missing value with closest good pixel
I have 2-D images with flaws, i.e., missing pixels. I want to replace each missing pixel with the closest good pixel. Does anybody have a routine to do this? For example, new = replace(image,missing=99) where image = 2-D array missing = keyword to specify the value which is to be replaced new = image with each pixel having value 99 replaced by closest pixel with a value not equal to 99. Thanks for any help, Fred -- =Fred Knight (knight@ll.mit.edu) (617) 981-2027 C-483\\MIT Lincoln Laboratory\\244 Wood Street\\Lexington, MA 02173