https://image2.slideserve.com/4040513/implementation-of-the-optimal-nl-filter-t.jpg