mse_frame

pyrost.bin.mse_frame(signatures, args, kwargs, defaults)

Return the average mean-squared-error (MSE) value per pixel.

Parameters
  • I_n (numpy.ndarray) – Measured intensity frames.

  • W (numpy.ndarray) – Measured frames’ whitefield.

  • I0 (numpy.ndarray) – Reference image of the sample.

  • u (numpy.ndarray) – The pixel mapping between the data at the detector’s plane and the reference image at the reference plane.

  • di (numpy.ndarray) – Sample’s translations along the slow detector axis in pixels.

  • dj (numpy.ndarray) – Sample’s translations along the fast detector axis in pixels.

  • ls (float) – Reference image length scale in pixels.

Returns

mse – Average MSE per pixel.

Return type

numpy.ndarray

See also

update_pixel_map_gs

Description of error metric which is being minimized.