Traditional and proposed frameworks for image registration.{In} indicates a collection of images. In image registration, we seek a deformation for each image In. The resulting deformations are then used for other applications, such as segmentation or group analysis. The registration cost function typically contains multiple parameters, such as the tradeoff parameter λ and the template T. Changes in these parameters alter the deformations and thus the outcomes of downstream applications. In our framework (b), we assume a training data set, which allows us to evaluate the quality of the registration as measured by the application performance (or cross-validation error metric) gn for each training subject. This allows us to pick the best parameters that result in good registration as measured by {gn}. Subsequent new subjects are registered using these learned parameters.