pyradiomics
pyradiomics copied to clipboard
[BUG] Documentation issue with Coarseness
Hi,
According to the documentation for Coarseness (https://pyradiomics.readthedocs.io/en/latest/features.html#radiomics.ngtdm.RadiomicsNGTDM.getCoarsenessFeatureValue), an arbitrary value of 10e6 is returned when the denominator for Coarseness is zero.
However, a value of 1e6 (i.e. 10e5) is actually returned: https://pyradiomics.readthedocs.io/en/latest/_modules/radiomics/ngtdm.html#RadiomicsNGTDM.getCoarsenessFeatureValue
For my own interest, why return an arbitrarily large value instead of, say, None or some other non-numeric value that would indicate a computational issue? Just wondering how I should handle these situations which have arisen in my data.
@mattwarkentin It's not really a computational issue, just an edge case which remains valid. The arbitrary value was suggested in the original source describing the use of NGTDM. An alteranative would by the use np.inf, but this can mess up any analysis (as it can't be normalized)