-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbatch_saving.py
More file actions
36 lines (32 loc) · 921 Bytes
/
batch_saving.py
File metadata and controls
36 lines (32 loc) · 921 Bytes
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
import os
import sys
if len(sys.argv) > 1:
image = sys.argv[1]
data = sys.argv[2]
else:
image = 'Y'
data = 'Y'
names_IHPC = ['IHPC', 'IHPC_cropped']
names_MIPAR = ['MIPAR', 'MIPAR_cropped']
methods = ['FFT', 'otsu']
MIPAR_cmap = 'gist_ncar'
for name in names_IHPC:
for method in methods:
if image == 'Y':
os.system('python image_saving.py {} {}'.format(name, method))
else:
pass
if data == 'Y':
os.system('python data_generation.py {} {}'.format(name, method))
else:
pass
for name in names_MIPAR:
for method in methods:
if image == 'Y':
os.system('python image_saving.py {} {} {}'.format(name, method, MIPAR_cmap))
else:
pass
if data == 'Y':
os.system('python data_generation.py {} {} {}'.format(name, method, MIPAR_cmap))
else:
pass