Evaluation of cost functions for gray value matching of two-dimensional images in radiotherapy | Synapse