Fitting one matrix to another under choice of a central dilation and a rigid motion