class documentation
class PreviewStitcher(BaseStitcher): (source)
Constructor: PreviewStitcher(images_dir, overlap, correlation_resize)
A stitcher for stitching an ongoing scan in preview mode.
Use start() to start a scan, and running to check if it is complete, or wait() to wait for it to complete.
The same stitcher object can be run multiple times to update the preview. However, one preview must finish before another can be started.
| Method | __init__ |
Initialise a preview stitcher. |
| Method | start |
Start stitching a preview of the scan in a background subprocess. |
| Method | wait |
Wait for this preview stitch to return. |
| Property | running |
Whether the preview stitch is running in a subprocess. |
| Instance Variable | _mode |
Undocumented |
| Instance Variable | _popen |
Undocumented |
| Instance Variable | _popen |
Undocumented |
Inherited from BaseStitcher:
| 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 |
Initialise a preview 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. |
Start stitching a preview of the scan in a background subprocess.
This uses popen and returns immediately.