major_axis_arrays

laserbeamsize.image_tools.major_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 of an image along the major axis.

Parameters:
  • image – the image to work

  • 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 pixel values along line y: index of vertical pixel values along line z: image values at each of the x, y positions s: position of z values along line