class documentation
class FinalStitcher(BaseStitcher): (source)
Constructor: FinalStitcher(images_dir, logger, stitching_settings, stitch_tiff)
A class to handle the final stitch for a scan.
| Method | __init__ |
Initialise a final stitcher, this has more args than the base class. |
| Method | log |
Log everything in the buffer at INFO level. |
| Method | run |
Run the final stitch logging any output. |
| Instance Variable | logger |
Undocumented |
| Method | _log |
Log the ongoing process unless it is cancelled. |
| Instance Variable | _extra |
Undocumented |
| Instance Variable | _mode |
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. |
def __init__(self, images_dir:
str, *, logger: logging.Logger, stitching_settings: StitchingSettings, stitch_tiff: bool = False):
(source)
¶
Initialise a final stitcher, this has more args than the base class.
All args except images_dir are positional only.
| Parameters | |
imagesstr | The images directory of the scan to stitch. |
logger:logging.Logger | The logger from the Thing that created this stitcher. |
stitchingStitchingSettings | A StitchingSettings model this can be loaded from a HistoricScanData for this scan as a dictionary. |
stitchbool | Whether to stitch a pyramidal TIFF. |
Run the final stitch logging any output.
| Raises | |
ChildProcessError | if exit code is not zero |
InvocationCancelledError | if the action is cancelled. |