liom_toolkit.segmentation.vseg.cldice module

liom_toolkit.segmentation.vseg.cldice.cl_dice(image_predicted: ndarray, image_truth: ndarray) float

Compute the CLDice metric

Parameters:
  • image_predicted (np.ndarray) – predicted image

  • image_truth (np.ndarray) – ground truth image

Returns:

CLDice metric

Return type:

float

liom_toolkit.segmentation.vseg.cldice.cl_score(image: ndarray, skeleton: ndarray) float

Compute the skeleton volume intersection

Parameters:
  • image (np.ndarray) – image

  • skeleton (np.ndarray) – skeleton

Returns:

computed skeleton volume intersection

Return type:

float