dodal.devices.oav.snapshots.snapshot_image_processing#
Functions
Compute the location of the beam centre in pixels on a reference image. :type sample_pos_mm: |
|
|
Draw a crosshair at the beam centre coordinates specified. |
- dodal.devices.oav.snapshots.snapshot_image_processing.draw_crosshair(image: Image, beam_x: int, beam_y: int)[source]#
Draw a crosshair at the beam centre coordinates specified. :type image:
Image
:param image: The image to draw the crosshair onto. This is mutated. :type beam_x:int
:param beam_x: The x-coordinate of the crosshair (pixels) :type beam_y:int
:param beam_y: The y-coordinate of the crosshair (pixels)
- dodal.devices.oav.snapshots.snapshot_image_processing.compute_beam_centre_pixel_xy_for_mm_position(sample_pos_mm: tuple[float, float], beam_pos_at_origin_px: tuple[int, int], microns_per_pixel: tuple[float, float]) tuple[int, int] [source]#
Compute the location of the beam centre in pixels on a reference image. :type sample_pos_mm:
tuple
[float
,float
] :param sample_pos_mm: x, y location of the sample in mm relative to when the reference imagewas taken.
- Parameters:
- Return type:
- Returns:
x, y location of the beam centre (pixels)