mymesh.register.dice#

mymesh.register.dice(u, v)[source]#

Dice-Sorensen coefficient for measuring the similarity between two binary images or arrays [Dic45] [Sor48]

Parameters:
  • u (np.ndarray(dtype=bool)) – Array of binary data (can be any shape)

  • v (np.ndarray(dtype=bool)) – Array of binary data (can be any shape)

Returns:

D – Dice-Sorensen coefficient in the range [0, 1]. 1 = identical, 0 = no overlap.

Return type:

float