Optimizers are used in the registration framework to find the best similarity between images, i.e., to optimize some similarity measure.