centerWithTemplate

lsst.ts.wep.utils.centerWithTemplate(image: ndarray, template: ndarray, rMax: float = 10) ndarray

Center the image by correlating with the template.

Parameters:
imagenp.ndarray

The image to be centered

templatenp.ndarray

The template to use for correlation

rMaxfloat, optional

The maximum distance the image can be shifted, in pixels. (the default is 10)

Returns:
np.ndarray

The centered image