Optimal O(1) Bilateral Filter with Arbitrary Spatial and Range Kernels Using Sparse Approximation | Synapse