MCPcopy Create free account
hub / github.com/KerenLab/CellSighter / load_data

Function load_data

data/utils.py:39–44  ·  view source on GitHub ↗
(fname)

Source from the content-addressed store, hash-verified

37
38
39def load_data(fname) -> np.ndarray:
40 if fname.endswith(".npz"):
41 image = np.load(fname, allow_pickle=True)['data']
42 elif fname.endswith(".tif") or fname.endswith(".tiff"):
43 image = io.imread(fname)
44 return image
45
46
47def load_image(image_path, cells_path, cells2labels_path, channels=[], to_pad=False, crop_size=0):

Callers 1

load_imageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected