porespy.tools.get_block_sizes#
- porespy.tools.get_block_sizes(im, block_size_range=[10, 100])#
Finds all viable block sizes between lower and upper limits
- Parameters:
im (np.array) – The binary image to analyze with
True
indicating phase of interest.block_size_range (sequence of 2 ints) – The [lower, upper] range of the desired block sizes. Default is [10, 100]
- Returns:
sizes – All the viable block sizes in the specified range
- Return type:
ndarray
Notes
This is called by rev_tortuosity to determine what size blocks to use.