non-local-means: fix comparison to value close to zero
tmp-format: add script to convert images to TMP format