Class PixelCalibration
java.lang.Object
uk.ac.gda.client.live.stream.calibration.PixelCalibration
- All Implemented Interfaces:
CalibratedAxesProvider
Create axes datasets for a data stream displaying camera pixel numbers on axes.
-
Constructor Summary
ConstructorsConstructorDescriptionAllows to create/recreate axesPixelCalibration(Supplier<org.eclipse.january.dataset.ILazyDataset> dataset) Associates this provider with aSupplier<ILazyDataset>. -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()Called when the stream connection has been established.voidCalled when the stream connection has been closed.org.eclipse.january.dataset.IDatasetReturns a calibrated horizontal axis.org.eclipse.january.dataset.IDatasetReturns a calibrated vertical axis.voidresizeStream(int[] newShape) Called when the stream data changes shape ([y, x])voidsetxAxisName(String xAxisName) voidsetyAxisName(String yAxisName)
-
Constructor Details
-
PixelCalibration
public PixelCalibration()Allows to create/recreate axes -
PixelCalibration
Associates this provider with aSupplier<ILazyDataset>.If a dataset is provided the axes are calculated on the first call of
getXAxisDataset()orgetYAxisDataset()- Parameters:
dataset-
-
-
Method Details
-
connect
public void connect()Description copied from interface:CalibratedAxesProviderCalled when the stream connection has been established. There is no need to do work until this point- Specified by:
connectin interfaceCalibratedAxesProvider
-
disconnect
public void disconnect()Description copied from interface:CalibratedAxesProviderCalled when the stream connection has been closed. No more work is needed, listeners can be disposed, etc.- Specified by:
disconnectin interfaceCalibratedAxesProvider
-
getXAxisDataset
public org.eclipse.january.dataset.IDataset getXAxisDataset()Description copied from interface:CalibratedAxesProviderReturns a calibrated horizontal axis. Called with each new frame.- Specified by:
getXAxisDatasetin interfaceCalibratedAxesProvider
-
getYAxisDataset
public org.eclipse.january.dataset.IDataset getYAxisDataset()Description copied from interface:CalibratedAxesProviderReturns a calibrated vertical axis. Called with each new frame.- Specified by:
getYAxisDatasetin interfaceCalibratedAxesProvider
-
resizeStream
public void resizeStream(int[] newShape) Description copied from interface:CalibratedAxesProviderCalled when the stream data changes shape ([y, x])- Specified by:
resizeStreamin interfaceCalibratedAxesProvider
-
getxAxisName
-
setxAxisName
-
getyAxisName
-
setyAxisName
-