Class CameraOffsetCalibration

java.lang.Object
uk.ac.gda.client.live.stream.calibration.AbstractCalibratedAxesProvider
uk.ac.gda.client.live.stream.calibration.CameraOffsetCalibration
All Implemented Interfaces:
CalibratedAxesProvider

public class CameraOffsetCalibration extends AbstractCalibratedAxesProvider
Creates axes datasets for a data stream calibrated to x and y scannables given pixel size and camera offset
  • Field Details

    • xAxisOffset

      protected double xAxisOffset
      The position of the camera relative to the x-axis of the sample stage.
    • yAxisOffset

      protected double yAxisOffset
      The position of the camera relative to the y-axis of the sample stage.
  • Constructor Details

    • CameraOffsetCalibration

      public CameraOffsetCalibration(Scannable xAxisScannable, double xAxisPixelScaling, double xAxisOffset, Scannable yAxisScannable, double yAxisPixelScaling, double yAxisOffset)
      Creates a new instance of BeamPixelPositionCalibration
      Parameters:
      xAxisScannable - The scannable for the horizontal axis of the camera
      xAxisPixelScaling - The width of each pixel of the camera, in the units used by the x-axis scannable
      xAxisOffset - he position of the camera relative to the x-axis of the sample stage
      yAxisScannable - The scannable for the vertical axis of the camera
      yAxisPixelScaling - The height of each pixel of the camera in the units used by the y-axis scannable
      yAxisOffset - The position of the camera relative to the y-axis of the sample stage.
  • Method Details

    • createAxesUpdaters

      protected void createAxesUpdaters()
      Description copied from class: AbstractCalibratedAxesProvider
      Should be overridden to create two instances of classes implementing CalibratedAxesDatasetUpdater, one for each axis, which will create the datasets when the scannables move, image is resized, or a new frame is received. In your concrete class, you should call this once all required properties in set, using one of the following: 1. Create a constructor which calls it. 2. Set the init-method property on your spring bean. 3. Implement InitializingBean and create an afterPropertiesSet() method which calls it.
      Specified by:
      createAxesUpdaters in class AbstractCalibratedAxesProvider