non-local-means: change function names
non-local-means: remove unused function