# Example 1: Large Hemorrhage
# 5cm x 4cm on largest slice, 12 slices total (all full size), 5mm thickness
# C = 12 * 0.5cm = 6cm. Volume = (5 * 4 * 6) / 2 = 60 mL
abc2_ich_volume(5, 4, 12, 5)
# Example 2: Small Hemorrhage
# 3cm x 2cm, 3 slices (5mm thick)
# C = 3 * 0.5cm = 1.5cm. Volume = (3 * 2 * 1.5) / 2 = 4.5 mL
abc2_ich_volume(3, 2, 3, 5)
Run the code above in your browser using DataLab