crop_image_to_integration_rect

laserbeamsize.image_tools.crop_image_to_integration_rect(image, xc, yc, dx, dy, phi)[source]

Return image cropped to integration rectangle.

Since the image is being cropped, the center of the beam will move.

Parameters:
  • image – image of beam

  • 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]

Returns:

cropped_image – cropped image new_xc: x-position of beam center in cropped image new_yc: y-position of beam center in cropped image