major_axis_arrays

laserbeamsize.image_tools.major_axis_arrays(image, xc, yc, dx, dy, phi, diameters=3)[source]

Return x, y, z, and distance values along semi-major axis.

Parameters:
  • image – the image to work with

  • xc – horizontal center of beam

  • yc – vertical center of beam

  • dx – ellipse diameter for axis closest to horizontal

  • dy – ellipse diameter for axis closest to vertical

  • phi – angle that elliptical beam is rotated [radians]

  • diameters – number of diameters to use

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: distance from start of minor axis to x, y position