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