load¶
-
seas.video.load(pathlist: List[str], downsample: int = False, t_downsample: int = False, dtype: Optional[str] = None, verbose: bool = True, tiffloading: bool = True, greyscale: bool = True) → numpy.ndarray[source]¶ Loads a list of tiff paths, returns concatenated arrays. Implemented size-aware loading for tiff arrays with pre-allocation Expects a list of pathnames:
- Parameters
pathlist – List of paths to load. Can be mixes formats, as long as dimensions match. ex: [‘./testvideo1.mat’, ‘/home/sydney/testfile2.tif’]
downsample – The spatial factor to downsample by.
t_downsample – The temporal factor to downsample by.
dtype – The data type to load into. Must be a numpy data type string.
verbose – Whether to print verbose output.
tiffloading – Whether to preallocate array in memory based on file size expected from each tiff file.
greyscale – Whether the files are in color or greyscale.
Returns:
Files in list must be the same xy dimensions. if downsample is an integer greater than one, movie will be downsampled # by that factor.