neuralib.scanner.core

neuralib.scanner.core.SceneIdx

0-base scan position

neuralib.scanner.core.DimCode

Dimension string code

alias of str

class neuralib.scanner.core.AbstractConfocalScanner[source]

ABC for the confocal image data

n_scenes: int

positions scan

meta: dict[str, Any]

metadata dict

abstract classmethod load(filepath)[source]
Parameters:

filepath (str | Path | bytes | BinaryIO | BufferedIOBase | BufferedReader)

abstract property width: dict[int, int]

X

abstract property height: dict[int, int]

Y

abstract property n_channels: dict[int, int]

number of fluorescence channels. C

abstract property n_zstacks: dict[int, int]

number of stacks in z axis. Z

abstract get_dim_code()[source]

get the DimCode

Dimension parameters (DimCode):

V - view

H - phase

I - illumination

S - scene

R - rotation

T - time

C - channel

Z - z plane (height)

M - mosaic tile, mosaic images only

Y - image height

X - image width

A - samples, BGR/RGB images only

Return type:

DIMCODE

get_pixel2mm_factor()[source]
neuralib.scanner.core.parse_tif_meta(file, **kwargs)[source]
Returns:

meta dict

Parameters:

file (Path)

Return type:

dict[str, Any]