rotateImgCalibrated

xripl.visualizations.rotateImgCalibrated(img, px2Um, pxRef, umRef, method='vertical', plots=False)[source]

Rotates the image 90 degrees in counter clockwise direction, and provides updated extents for spatial calibration of the image.

imgnumpy.ndarray

Image to be rotated.

px2Umfloat

Conversion factor micrometers / pixel for the image.

pxReftuple

Reference position in pixels for the unrotated image. This is based on a known feature, such as a fiducial or filter edge.

umReftuple

Reference position in micrometers. This is the same reference used for pxRef, but with the known target coordinates from metrology/design.

methodstr

Direction of shock propagation in the newly rotated image. Default shock direction is vertical.

plotsbool

Flag for plotting rotated image with spatially calibrated axes. Default is False.