infer_subc/organelles/cytoplasm
get_cytoplasm(nuclei_obj, cellmask, meta_dict, out_data_path)
load cytoplasm if it exists, otherwise calculate and write to ome.tif file
Parameters
in_img
a 3d np.ndarray image of the inferred organelle (labels or boolean)
cellmask
a 3d image containing the cellmask object (mask)
out_data_path
Path object where tiffs are written to
Returns
exported file name
Source code in infer_subc/organelles/cytoplasm.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
|
infer_and_export_cytoplasm(nuclei_object, cellmask, meta_dict, out_data_path)
infer nucleus and write inferred nuclei to ome.tif file
Parameters
nuclei_object
a 3d image containing the nuclei object
cellmask
a 3d image containing the cellmask object (mask)
out_data_path
Path object where tiffs are written to
Returns
exported file name
Source code in infer_subc/organelles/cytoplasm.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
|
infer_cytoplasm(nuclei_object, cellmask, erode_nuclei=True)
Procedure to infer infer from linearly unmixed input. (logical cellmask AND NOT nucleus)
Parameters
nuclei_object
a 3d image containing the nuclei object
cellmask
a 3d image containing the cellmask object (mask)
erode_nuclei
should we erode?
Returns
cytoplasm_mask boolean np.ndarray
Source code in infer_subc/organelles/cytoplasm.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|