degree centrality for ROI

Hello,
I’m trying to calculate degree centrality (DC) and I was wondering if it would be possible to compute DC within an ROI instead of doing it at every voxel. If I use the -mask option, DC is computed for the voxels within this mask. Can I simply average or sum these values to get a global DC for the ROI?
Thanks!
Sam