-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimage_processing_script.py
62 lines (50 loc) · 2.49 KB
/
image_processing_script.py
1
2
3
4
5
6
7
8
9
10
11
12
13
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import sys
import matplotlib.pyplot as plt
# To use the imaging module wihtout having to put it in every directory for analysis, put in the absolute path below. That directory
# will also need either 'pyMCDS.py' or 'pyMCDS_ECM.py'. Otherwise, place 'imaging_processing_for_phyiscell.py' and either MCDS file
# in the current working directory.
sys.path.append(r'../python_imaging')
from image_processing_for_physicell import *
options_for_figure = {}
options_for_figure = {"output_plot" : True,
"show_plot" : True,
"produce_for_panel" : False,
"plot_ECM_anisotropy" : False,
"plot_ECM_orientation" : False,
"retrieve_ECM_data": False,
"retrieve_first_chemical_field_data" : True,
'plot_chemical_field' : True,
"load_full_physicell_data" : True,
"plot_cells_from_SVG" : True,
"contour_options" : {'lowest_contour': 0.0, ### I woud like this to be cleaner - but it does work!!!
'upper_contour': 38,
'number_of_levels': 38,
'color_map_name': 'summer',
'color_bar': True
},
"quiver_options" : None
}
#### Right now, if you don't have None or the full contour and quiver options, it will break in the plotting ...
mf = PhysiCellPlotter()
# mf.plot_cell_tracks_from_svg(0, 1, 10)
# mf.general_image_plotter (filename: str, folder: str='.', output_folder='', cell_df: dict=None, cell_positions_from_SVG: dict=None, chemical_mesh: dict=None, ECM_mesh: dict=None, options=None):
image_list_for_figure = []
image_list_for_figure = [100]
for number in image_list_for_figure:
mf.generic_plotter(starting_index=0, number_of_samples=number, options=options_for_figure)
# generic_plotter (start, intervnal, finish, save_filename, data_path, save_path, options)
#
# All based on options/logic- function
# load_cell_positiondata
# load_uE_data_chemical
# load_uE_data_ECM
#
# process data into plots - functions
# - cell tracks (might be loaded by just be plotted???)
# - cell positions
# - ECM layer
# - chemical layer
#
# complete plot presentaiont and save (maybe functions)
# - title
# - axes