A unified framework for mode filtering and the maximum a posteriori mode filter | Synapse