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
- q
queue.Queue
A queue containing elements in the form
[hyperslice, index, zfrom, offset_idx, top_left, overlaps]
wherehyperslice
is anumpy.ndarray
,pandas documentation
andzfrom
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 ofslice
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 apandas.DataFrame
specifying overlaps with adjacent tiles.- frame_shapetuple
Shape of a stack plane (XY).
- dest
numpy.ndarray
Destination array.
- debug: bool
Whether to overlay debug information (tile edges and numbers).
- q
- zetastitcher.fuse.fuse.overlay_debug(slice, index, z_from)¶
- zetastitcher.fuse.fuse.squircle_alpha(height, width)¶