class RectGridWorkflow(ScanWorkflow[
Known subclasses: openflexure_microscope_server.things.scan_workflows.CChipWorkflow, 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 | all |
Return scan settings and the stitching settings. |
| 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 | _build |
Construct the _settings_model. |
| 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 | new |
Return the a new scan planner object for a scan. |
| Method | pre |
Overload to set the routine that happens before each scan. |
| Method | settings |
Return the UI for the workflow's settings in the scan tab. |
| Class Variable | display |
Undocumented |
| Class Variable | save |
A tuple of the image resolution to capture. |
| Class Variable | ui |
Undocumented |
| 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 |
str) -> tuple[ RectGridSettingModelType, StitchingSettings | None]:
(source)
¶
Return scan settings and the stitching settings.
| Parameters | |
imagesstr | The directory that images are to be written to. |
| Returns | |
tuple[ | A tuple containing the settings model for this workflow and the settings model for stitching. |
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 400, and less than or equal to 3000.
Note that 200 steps is the backlash correction size, so the value must be above this. 3000 is a sensible limit for 20x objectives.
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. |