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

spelling, not important

parent b566f728
......@@ -129,6 +129,7 @@ def relabel_the_outside(image,labels, rw = None):
assert (np.count_nonzero(image == 1) == 0 ), 'You must reserve label = 1, for pixels outside the cylinder'
print("relabeling from 0,128,255 to 0,1,128, 255")
# CREATING CIRCULAR MASK
# The cylinder is supposed to be the biggest "circle" inscribed in a squared image
z,x,y = np.shape(image)[0], np.shape(image)[1], np.shape(image)[2]
......@@ -143,7 +144,7 @@ def relabel_the_outside(image,labels, rw = None):
for j in range(z):
mask_3D[j] = mask_2D
image[np.logical_not(mask_3D)] = labels[0] # outside the cilinder label = 1
print("{} pixels have been attributed to tha phase : outside the cylinder".format(np.count_nonzero(image == 1)))
print("{} pixels have been attributed to the phase : outside the cylinder".format(np.count_nonzero(image == 1)))
return image
......
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