Skip to content
Snippets Groups Projects
Commit 7ce80e3a authored by tomrink's avatar tomrink
Browse files

minor

parent c93e2d55
No related branches found
No related tags found
No related merge requests found
......@@ -168,19 +168,20 @@ def run(data_h5f, label_h5f, data_tiles, label_tiles, factor=2):
i_skip = 3 * mod_tile_width
i_start = int(mod_num_pixels / 2) - int((num_keep_x_tiles * 3 * mod_tile_width) / 2)
border = 7
num_keep_y_tiles = 16
j_skip = 3 * mod_tile_width
for j in range(num_keep_y_tiles):
j_c = j * j_skip
j_m = j_c
j_m = j_c + border
j_i = j_m * factor
for i in range(num_keep_x_tiles):
i_c = i * i_skip + i_start
i_m = i_c
i_m = i_c + border
i_i = i_m * factor
nda = mod_data[:, j_m:j_m + mod_tile_width, i_m:i_m + mod_tile_width]
nda = mod_data[:, j_m-border:j_m + mod_tile_width+border, i_m:i_m + mod_tile_width]
data_tiles.append(nda)
nda = img_data[:, j_i:j_i + img_tile_width, i_i:i_i + img_tile_width]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment