I am doing medical image segmentation and working on 3D images, and have two images one is ground truth (gt), and one the segmentation prediction results (segm), I need to calculate two other metrics
- average absolute surface distance (AvgD) in mm,
- the average root mean square surface distance (RMSD) in mm,
- the volumetric overlap error (VOE) in percent,
- the relative volume difference (VD) in percent.
Where R is gt and S is segm. In python, the intersection can be calculated
np.logical_and(segm, gt).
But I have no idea how these four evaluation metrics can be calculated. Your help is really appreciated.

