A General Framework for Regularized, Similarity-Based Image Restoration | Synapse