class documentation
class RectGridWorkflow(ScanWorkflow[
Known subclasses: openflexure_microscope_server.things.scan_workflows.HistoScanWorkflow, openflexure_microscope_server.things.scan_workflows.RegularGridWorkflow
A generic workflow for any scan that captures images on a rectilinear grid.
| Method | check |
Before starting a scan, check that camera-stage-mapping is set. |
| Class Variable | autofocus |
The z distance to perform an autofocus in steps. |
| Class Variable | overlap |
The fraction that adjacent images should overlap in x and y. |
| Property | ready |
Whether this scanworkflow is ready to start. |
| Method | _calc |
Use camera stage mapping to calculate x and y displacement from given overlap. |
| Method | _get |
Return a stitching settings model based on current settings. |
| Class Variable | _csm |
Undocumented |
Inherited from ScanWorkflow:
| Method | acquisition |
Overload to set the acquisition routine that happens at each scan site. |
| Method | all |
Return the scan settings and the stitching settings. |
| Method | new |
Return the a new scan planner object for a scan. |
| Method | pre |
Overload to set the routine that happens before each scan. |
| Class Variable | display |
Undocumented |
| Class Variable | save |
A tuple of the image resolution to capture. |
| Class Variable | ui |
Undocumented |
| Property | settings |
A list of PropertyControl objects to create the settings in the scan tab. |
| Method | _autofocus |
Autofocus and then capture, this can be used as an acquisition routine. |
| Class Variable | _autofocus |
Undocumented |
| Class Variable | _cam |
Undocumented |
| Class Variable | _planner |
Undocumented |
| Class Variable | _settings |
Undocumented |
| Class Variable | _stage |
Undocumented |
Before starting a scan, check that camera-stage-mapping is set.
- Raise error if:
- camera stage mapping is not set
The z distance to perform an autofocus in steps.
Must be greater than or equal to 200, and less than or equal to 2000.
Use camera stage mapping to calculate x and y displacement from given overlap.
| Parameters | |
overlap:float | The desired overlap as a fraction of the image. i.e. 0.5 means that each image should overlap its nearest neighbour by 50%. |
| Returns | |
tuple[ | (dx, dy) - the x and y displacements in steps |
| Raises | |
RuntimeError | If there is no camera stage mapper Thing available or if CMS isn't calibrated. |