zetastitcher.fuse.fuse module

zetastitcher.fuse.fuse.flatten(my_list)
zetastitcher.fuse.fuse.fuse_queue(q, dest, frame_shape, debug=False)

Fuse a queue of images along Y, optionally applying padding.

Parameters
qqueue.Queue

A queue containing elements in the form [hyperslice, index, zfrom, offset_idx, top_left, overlaps] where hyperslice is a numpy.ndarray, pandas documentation and zfrom are the tile index in the pandas dataframe and the starting frame in the original stack (these two are used for debugging purposes only), offset_idx is a tuple of slice objects with the slice offset inside a single stack, top_left is a list specifying the image position in the form [Z, Y, X], overlaps is a pandas.DataFrame specifying overlaps with adjacent tiles.

frame_shapetuple

Shape of a stack plane (XY).

destnumpy.ndarray

Destination array.

debug: bool

Whether to overlay debug information (tile edges and numbers).

zetastitcher.fuse.fuse.overlay_debug(slice, index, z_from)
zetastitcher.fuse.fuse.squircle_alpha(height, width)