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

this cleaning procedure is based on the obect

counter in FIJI.
But we won't use that pluggin anymore to compute
connected pores.

Instead, we are using the connected regions pluggin
parent 655c7cd7
import tifffile
import numpy as np
file_name = '/home/german.martinez-carvajal/Desktop/COP_70MIC_gravel_75x75x75.tif'
segmentation = tifffile.imread(file_name)
file_name = "/home/german.martinez-carvajal/Desktop/Objects map of COP_70MIC_gravel_75x75x75.tif"
object_map = tifffile.imread(file_name)
print(object_map.shape)
object2 = (object_map == 2)
print('Object2 has {} voxels'.format(np.count_nonzero(object2)))
print('ok')
\ No newline at end of file
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