neuralib.imglib.io.read_sequences
- neuralib.imglib.io.read_sequences(avi_file, grey_scale=True)[source]
Read an sequences file (i.e., AVI/MP4) into an array, converting to grayscale if specified.
- Parameters:
avi_file (str | Path | bytes | BinaryIO | BufferedIOBase | BufferedReader) – Path to the AVI file.
grey_scale (bool) – Whether to convert frames to grayscale.
- Returns:
Sequences array. Array[uint8, [F, W, H]|[F, W, H, 3]]
- Return type:
ndarray