This commit is contained in:
Ross
2021-11-21 20:39:08 +00:00
parent 8f50dabb5a
commit 2bdc41278c
4 changed files with 44 additions and 0 deletions
+1
View File
@@ -458,6 +458,7 @@ class RapidImage(models.Model):
# Try and read the file as a dicom
try:
# and generate a hash from the pixel data
# TODO: improve?
dataset = pydicom.dcmread(self.image)
print(dataset)
flatten = dataset.pixel_array.flatten()