Probabilistic framework for the adaptation and comparison of image codes | Synapse