I use the function regionprops in python for different sizes of 3D images (tiff images). However, when the size of my image is upper than 4Go, regionprops extracting always the same number of labels (32767). I run my code on Jupyter Notebook.
Can you help me to fix this (if it is possible) ?
Thank you in advance.
my code :
props = skimage.measure.regionprops(test) #test is np.array and contains my label image
#save to a file in csv format
name_file ="particles_position.txt" #change the file name
with open(name_file, "w") as csvfile:
csv.register_dialect("custom", delimiter=" ", skipinitialspace=True)
writer = csv.writer(csvfile, dialect="custom")
writer.writerow(('label','centroid','area','equivalent_diameter'))
for i in range(np.size(props)):
writer.writerow((props[i]['label'], props[i]['centroid'], props[i]['area'], props[i]['equivalent_diameter']))