Skip to content

Commit

Permalink
Update DicomNiftiConversion.py
Browse files Browse the repository at this point in the history
  • Loading branch information
qurit-frizi authored Jul 15, 2024
1 parent f6dc27f commit 20e71a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/src/DicomNiftiConversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def dicomToNifti(seriesDir, savePath):
pet = pydicom.dcmread(seriesNames[0]) # read one of the images for header info but it should be changed for each slice
suv_result = bqml_to_suv(pet)
suv_factor = suv_result[0]
Rescale_Slope = 1; #suv_result[1]
Rescale_Slope = 1; #suv_result[1] #based on the autoPET challenge suggestion: https://github.com/lab-midas/autoPET/blob/master/data_conversion/tcia2nifti.py
Rescale_Intercept = 0; #suv_result[2]

image = sitk.Multiply(image, Rescale_Slope)
Expand Down

0 comments on commit 20e71a8

Please sign in to comment.