porespy.tools.block_size_to_divs#

porespy.tools.block_size_to_divs(shape, block_size)#

Finds the number of blocks in each direction given the size of the blocks

Parameters:
  • shape (sequence of ints) – The [x, y, z] shape of the image

  • block_size (int or sequence of ints) – The size of the blocks

Returns:

divs – The number of blocks to divide the image into along each axis. The minimum number of blocks is 2.

Return type:

list of ints