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
Creates axes datasets for a data stream calibrated to x and y scannables given pixel size and camera offset
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleThe position of the camera relative to the x-axis of the sample stage.protected doubleThe position of the camera relative to the y-axis of the sample stage.Fields inherited from class uk.ac.gda.client.live.stream.calibration.AbstractCalibratedAxesProvider
xAxisPixelScaling, xAxisScannable, xAxisUpdater, yAxisPixelScaling, yAxisScannable, yAxisUpdater -
Constructor Summary
ConstructorsConstructorDescriptionCameraOffsetCalibration(Scannable xAxisScannable, double xAxisPixelScaling, double xAxisOffset, Scannable yAxisScannable, double yAxisPixelScaling, double yAxisOffset) Creates a new instance of BeamPixelPositionCalibration -
Method Summary
Modifier and TypeMethodDescriptionprotected voidShould 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.Methods inherited from class uk.ac.gda.client.live.stream.calibration.AbstractCalibratedAxesProvider
connect, disconnect, getXAxisDataset, getYAxisDataset, resizeStream, updateDatasets
-
Field Details
-
xAxisOffset
protected double xAxisOffsetThe position of the camera relative to the x-axis of the sample stage. -
yAxisOffset
protected double yAxisOffsetThe 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 cameraxAxisPixelScaling- The width of each pixel of the camera, in the units used by the x-axis scannablexAxisOffset- he position of the camera relative to the x-axis of the sample stageyAxisScannable- The scannable for the vertical axis of the camerayAxisPixelScaling- The height of each pixel of the camera in the units used by the y-axis scannableyAxisOffset- The position of the camera relative to the y-axis of the sample stage.
-
-
Method Details
-
createAxesUpdaters
protected void createAxesUpdaters()Description copied from class:AbstractCalibratedAxesProviderShould 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:
createAxesUpdatersin classAbstractCalibratedAxesProvider
-