match_template_to_layer

sunpy.image.coalignment.match_template_to_layer(layer, template)[source] [edit on github]

Calculate the correlation array that describes how well the template matches the layer. All inputs are assumed to be numpy arrays.

Parameters
  • layer (numpy.ndarray) – A numpy array of size (ny, nx).

  • template (numpy.ndarray) – A numpy array of size (N, M) where N < ny and M < nx.

Returns

numpy.ndarray – A correlation array between the layer and the template. The values in the array range between 0 and 1.