Bayesian sparsity and class sparsity priors for dictionary learning and coding | Synapse