zetastitcher.fuse.virtual_fused_volume module

API to query an arbitrary region in the stitched volume.

class zetastitcher.fuse.virtual_fused_volume.VirtualFusedVolume(file_or_matrix)

Bases: object

An API to query arbitrary regions in the stitched volume.

Example usage:

>>> vfv = VirtualFusedVolume('stitch.yml')
>>> vfv.shape
(208, 3, 4533, 2487)

Axis order is ZCYX.

>>> subvolume = vfv[40, ..., 1000:1500, 1800:2400]

Use peek to get a list of tiles that would be accessed for a given query:

>>> vfv.peek[40, ..., 1000:1500, 1800:2400]
[
    ('0000_0000.tiff', (slice(40, 41, 1), slice(1000, 1500, 1), slice(1800, 2048, 1))),
    ('0100_0000.tiff', (slice(40, 41, 1), slice(1000, 1500, 1), slice(0, 453, 1))),
]
Attributes
overlay_debug_enabled

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

peek
shape

Shape of the whole stitched volume.

property overlay_debug_enabled

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

Defaults to False.

property peek
property shape

Shape of the whole stitched volume.

Axis order is ZCYX.

zetastitcher.fuse.virtual_fused_volume.to_dtype(x, dtype)