Hello,

I have to calculate the volume of some lesion masks and I was wondering if counting the voxels != 0 and multiplying for the dimension of a single voxel in mm³ can be a right approach.

I mean:

- Load the Nifti with nibabel
- Iterating x,y,z and counting the voxel != 0
- Multiplying for pixmap[1] * pixmap[2] + pixmap[3] from Nifti header