darfix.core.mapping.compute_magnification#

darfix.core.mapping.compute_magnification(H, W, d, obx, obpitch, mainx, topography=[False, 0], center=True)[source]#
Parameters:
  • H (int) – height of the image in pixels.

  • W (int) – width of the image in pixels.

  • d (float) – Distance in micrometers of each pixel.

  • obx (float) – motor ‘obx’ value.

  • obpitch (float) – motor ‘obpitch’ value in the middle of the dataset.

  • mainx (float) – motor ‘mainx’ value.

Returns:

Tuple of two arrays of size (H, W)

Return type:

(X1, X2) : ndarray