bilateral filter implemented but not valid