sksurgeryfred.algorithms.scores module

Functions for calculating the score for ablation game

sksurgeryfred.algorithms.scores.calculate_score(target_centre, est_target_centre, target_radius, margin)[source]

Calculates the score for a given simulated ablation :params target_centre: The known target position :params est_target_centre: The target centre estimated by registration :target_radius: The radius of the target :margin: The margin to add (treatment radius = target_radius + margin :returns: the score

sksurgeryfred.algorithms.scores.sphere_volume(radius)[source]
Returns

the volume of a sphere of radius

sksurgeryfred.algorithms.scores.two_sphere_overlap_volume(centre0, centre1, radius0, radius1)[source]

Calculates the overlapping volume of two spheres from https://math.stackexchange.com/questions/297751/overlapping-spheres :param: centre0 centre of sphere0 (1x3) :param: centre1 centre of sphere1 (1x3) :param: radius0 radius of sphere0 (1) :param: radius1 radius of sphere1 (1)