diff --git a/radiomics/glrlm.py b/radiomics/glrlm.py index 629012a2..2d628073 100644 --- a/radiomics/glrlm.py +++ b/radiomics/glrlm.py @@ -197,6 +197,9 @@ def _applyMatrixOptions(self, P_glrlm, angles): # Optionally apply a weighting factor if self.weightingNorm is not None: self.logger.debug('Applying weighting (%s)', self.weightingNorm) + # Correct the number of voxels for the number of times it is used (once per angle), affects run percentage + self.coefficients['Np'] *= len(angles) + pixelSpacing = self.inputImage.GetSpacing()[::-1] weights = numpy.empty(len(angles)) for a_idx, a in enumerate(angles):