added bilateral filter without approximations.