Commit d3f49ffe authored by Martinez-Carvajal German's avatar Martinez-Carvajal German
Browse files

printing progression

parent 8b580e3a
......@@ -259,8 +259,12 @@ def connect_CR(path_read, file_top, file_bot, path_save, sample_name):
print("Final relabel...")
pores = np.sort(np.unique(connected_image))
ll = len(pores)
final_label = 0
for pore in pores:
progression = int((final_label/ll)*100)
if progression % 2 == 0:
print("{}%".format(progression))
mask = (connected_image == pore)
connected_image[mask] = final_label
final_label +=1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment