minor_axis_arrays

laserbeamsize.image_tools.minor_axis_arrays(image: ndarray, xc_px: float, yc_px: float, line_length_px: float, phi: float) tuple[ndarray[tuple[Any, ...], dtype[floating]], ndarray[tuple[Any, ...], dtype[floating]], ndarray[tuple[Any, ...], dtype[floating]], ndarray[tuple[Any, ...], dtype[floating]]][source]

Return x, y, z, and distance values along the minor axis.

Parameters:
  • image – the image to work with

  • xc_px – horizontal center of beam

  • yc_px – vertical center of beam

  • line_length_px – total length of line

  • phi – angle between major axis and horizontal axis [radians]

Returns:

x – index of horizontal pixels y: index of vertical pixels z: image values at each of the x, y positions s: position of z values along line