module documentation
Communicate with OpenFlexure Stitching to perform stitches for scans.
This includes both live stitching and final stitching. This is done via subprocess to call openflexure-stitching over CLI. This cannot be done via Threading due to the CPU intensity of stitching causing scanning problems due to the Python Global Interpreter Lock (GIL). May be possible to shift to multiprocessing in the future.
| Class | |
A base stitching class for all stitchers. Don't initialise this directly. |
| Class | |
A class to handle the final stitch for a scan. |
| Class | |
A stitcher for stitching an ongoing scan in preview mode. |
| Exception | |
Exception called when stitch is killed by an external process calling Sigkill. |
| Exception | |
The stitcher received values that it deems unsafe to create a command from. |
| Function | validate |
Validate that the command only characters that are allowed in a path. |
| Constant | DEFAULT |
Undocumented |
| Constant | DEFAULT |
Undocumented |
| Constant | STITCH |
Undocumented |
| Constant | STITCHING |
Undocumented |
| Constant | STITCHING |
Undocumented |
Validate that the command only characters that are allowed in a path.
The values in the commands should be numbers, commandline flags, paths, and executables. All of these should be allowed by make_path_safe.
| Raises | |
StitcherValidationError | if any element in the command is not safe. |