porespy.beta.tortuosity_bt#

porespy.beta.tortuosity_bt(im, block_size=None, method='chords', use_dask=True)#

Computes the tortuosity of an image in all directions

Parameters:
  • im (ndarray) – The boolean image of the materials with True indicating the void space

  • block_size (int) – The size of the blocks which the image will be split into. If not provided, it will be determined by the provided method in method

  • method (str) –

    The method to use to determine block sizes if block_size is not provided

    method

    description

    ’chords’

    Uses apply_chords_3D from Porespy to determine the longest chord possible in the image as the length of each block.

    ’dt’

    Uses the maximum length of the distance transform to determine the length of each block.

  • use_dask (bool) – A boolean determining the usage of dask for parallel processing.