neuralib.scanbox.view.ScanBoxView
- class neuralib.scanbox.view.ScanBoxView[source]
Bases:
objectScanbox info and data
Dimension parameters:
F = number of frames
P = number of optical planes
C = number of PMT channels
W = FOV width
H = FOV height
- __init__(directory)[source]
- Parameters:
directory (str | Path | PathLike[str]) – directory contain
.sbx&.matfiles
Methods
__init__(directory)show(frames, plane, channel)play the selected frames using customized CV2 player
to_tiff(frames, plane, channel, output)Convert the selected frames to tiff file
Attributes
fov height
scanbox meta information
sbx issue, a bit of hard-coded
number of frames per plane
number of optical imaging planes
scanbox version
fov width
SBXInfoArray[float, [F, P, C, W, H]]
- __init__(directory)[source]
- Parameters:
directory (str | Path | PathLike[str]) – directory contain
.sbx&.matfiles
- sbx_map: sbx_memmap
Array[float, [F, P, C, W, H]]
- property meta: dict[str, Any]
scanbox meta information
- property version: int
scanbox version
- property height: int
fov height
- property width: int
fov width
- property n_planes: int
number of optical imaging planes
- property n_channels: int
sbx issue, a bit of hard-coded
- property n_frames: int
number of frames per plane
- show(frames, plane, channel)[source]
play the selected frames using customized CV2 player
- Parameters:
frames (slice | ndarray | None) – selected frames. If None, play all sequences
plane (int) – number of optical planes
channel (int) – number of PMT channel
- to_tiff(frames, plane, channel, output)[source]
Convert the selected frames to tiff file
- Parameters:
frames (slice | ndarray | None) – selected frames. If None, convert all sequences
plane (int) – number of optical planes
channel (int) – number of PMT channel
output (str | Path | PathLike[str]) – output filename