cubestats#

omnipose.utils.cubestats(n)[source]#

Gets the number of m-dimensional hypercubes connected to the n-cube, including itself.

Parameters

n (int) -- dimension of hypercube

Returns

  • List whose length tells us how many hypercube types there are (point/edge/pixel/voxel...)

  • connected to the central hypercube and whose entries denote many there in each group.

  • E.g., a square would be n=2, so cubestats returns [4, 4, 1] for four points (m=0),

  • four edges (m=1), and one face (the original square,m=n=2).