ewoksndreg.evaluation.eval_metrics.peak_eval#

ewoksndreg.evaluation.eval_metrics.peak_eval(stack, reference)[source]#

Calculate a measure of how reliable a stack of images is to determine the transformations between the images.

The measure is based on phase cross correlation which generates an image with the peak with coordinates corresponding to the shift. This eval calculates how distinguished this peak is by comparing it to the mean of the phase correlation image

param stack: the aligned or unaligned stack with pixel values in [0,1]

Parameters:
  • stack (ndarray)

  • reference (int)

Return type:

float