class BaseStitcher: (source)
Known subclasses: openflexure_microscope_server.stitching.FinalStitcher, openflexure_microscope_server.stitching.PreviewStitcher
Constructor: BaseStitcher(images_dir, overlap, correlation_resize)
A base stitching class for all stitchers. Don't initialise this directly.
The base class has no way to run the command. Child classes should either implement start, running, and wait methods if return after starting the subprocess and can be polled or waited on like a thread; or run if the the function blocks while the stitching subprocess is ongoing and return once complete.
| Method | __init__ |
Initialise a stitcher. |
| Method | validate |
Check path is safe before making a command to run with subprocess. |
| Instance Variable | correlation |
Undocumented |
| Instance Variable | images |
Undocumented |
| Instance Variable | min |
Undocumented |
| Property | command |
The command to run with subprocess.Popen. |
| Instance Variable | _extra |
Undocumented |
| Instance Variable | _mode |
Undocumented |
openflexure_microscope_server.stitching.FinalStitcher, openflexure_microscope_server.stitching.PreviewStitcherInitialise a stitcher.
All args except images_dir are positional only.
| Parameters | |
imagesstr | The images directory of the scan to stitch. |
overlap:float | The scan overlap. |
correlationfloat | The fraction to resize images by when correlating. |
Check path is safe before making a command to run with subprocess.
This is essential for stopping arbitrary code execution.
| Raises | |
RuntimeError | if inputs are unsafe. |
openflexure_microscope_server.stitching.FinalStitcher, openflexure_microscope_server.stitching.PreviewStitcherUndocumented