image module¶
Created on Fri Jan 11 14:04:59 2019
@author: felix
-
image.
locate_centriole_files
(infolder, key='.tif', exclude=None)[source]¶ Locate the stack files of centriole images.
infolder: top-level folder of where the .tifs can be found key: the extension of the file
files: list of sorted filepaths.
-
image.
read_multiimg_PIL
(tiffile)[source]¶ Use pillow library to read .tif/.TIF files. (single frame)
tiffile: input .tif file to read, can be multipage .tif (string) frame: desired frarme number given as C-style 0-indexing (int)
- a numpy array that is either:
- (n_frames x n_rows x n_cols) for grayscale or (n_frames x n_rows x n_cols x 3) for RGB