--- a +++ b/CLI/MusculoskeletalAnalysisCLITools/density.py @@ -0,0 +1,8 @@ + + +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