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

not important

parent 4806041a
......@@ -128,7 +128,7 @@ def relabel_the_outside(image,labels):
label [3]= 255 = gravel
"""
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,1298255")
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
......@@ -256,9 +256,9 @@ def main():
# Directory Reading
path_read = '/home/german.martinez-carvajal/Desktop/These/Hashemi_segmentation/Tests/Test9_Rapide/Results/heavy_results'
# Directory saving
path_save = "/home/german.martinez-carvajal/Desktop/These/Volume_fraction_profiles/Test"
path_save = '/home/german.martinez-carvajal/Desktop/These/Volume_fraction_profiles/Test'
# Image Name
image_name ="Hash_Segm_of_Image_Filtered_PVE_50_Tol_0.75_NumVS_1.tif"
image_name ='Hash_Segm_of_Image_Filtered_PVE_50_Tol_0.75_NumVS_1.tif'
# cheking
check_paths_and_files(path_read, path_save, image_name)
......@@ -284,4 +284,4 @@ def main():
Compute_Volume_Fraction_Profile (path_read, path_save, image_name, labels, neighbors, resolution, flag_TZ = flag_TZ, lims = lims, flag_RAM_limitation = flag_RAM_limitation, flag_relabel = flag_relabel)
main()
print("Finished")
print('Finished')
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