basic_beam_size

laserbeamsize.analysis.basic_beam_size(original)[source]

Determine the beam center, diameters, and tilt using ISO 11146 standard.

Find the center and sizes of an elliptical spot in an 2D array.

The function does nothing to eliminate background noise. It just finds the first and second order moments and returns the beam parameters. Consequently a beam spot in an image with a constant background will fail badly.

FWIW, this implementation is roughly 800X faster than one that finds the moments using for loops.

When background noise dominates then a diameter of 1 is returned.

Parameters:

image – 2D array of image with beam spot

Returns:

xc – horizontal center of beam yc: vertical center of beam dx: horizontal diameter of beam dy: vertical diameter of beam phi: angle that elliptical beam is rotated [radians]