Fast median and bilateral filtering | Synapse