-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinitializer.py
More file actions
20 lines (15 loc) · 765 Bytes
/
initializer.py
File metadata and controls
20 lines (15 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from configurations import *
def initialize_rsults_folder():
if not os.path.isdir(RESULTS_FILES_DIR):
os.mkdir(RESULTS_FILES_DIR)
def initialize_rois():
ROIs = []
for column in xrange(columns_count):
for row, row_name in enumerate(rows):
region_start = Vector.add(regions_start_point, regions_offset_from_start)
region_start.x += column * region_default_width + column * space_between_regions.x
region_start.y += row * region_default_height + row * space_between_regions.y
current_region = Region(region_default_width, region_default_height, region_start,
row_name + ' - ' + str(column + 1))
ROIs.append(current_region)
return ROIs