Switch to unified view

a b/CLI/MusculoskeletalAnalysisCLITools/density.py
1
2
3
def densityMap(img, slope, intercept):
4
    """Converts an image to a density map the same shape and size.
5
6
    Uses parameters from DICOM metadata to find linear relationship between pixel value and physical density.
7
    """
8
    return img * slope + intercept