Nearest neighbors is a semi deconvolution algorithm. I m a newbie in matlab but I hope this helps somebody :)