Once a template per size range is constructed, the second step is to match it with the mass boundaries in a mammogram. The developed approach is inspired by the work of Jain et al. [80], where a Bayesian inference scheme was adopted. The three following subsections describe in more detail each of the prior, likelihood and posterior terms. In addition, other details of the design of the algorithm are given.