.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user