Multiply the number of voxels by the volume of a single voxel:
auto sp = image->GetSpacing();
double voxelVolume = sp[0]*sp[1]*sp[2];
Multiply the number of voxels by the volume of a single voxel:
auto sp = image->GetSpacing();
double voxelVolume = sp[0]*sp[1]*sp[2];