Replies: 1 comment 16 replies
-
We'd really need to see an example file, but the exception message should give you a clue: all our pixel data methods depend on the dataset at the current level containing one of the pixel data elements (Pixel Data, Float Pixel Data or Double Float Pixel Data). Have you tried If that doesn't work, take a look at the current |
Beta Was this translation helpful? Give feedback.
16 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I work with DICONDE format files, for which pydicom is suitable with a slight modification (bytes not containing “(” are skipped)).
However, I am encountering a problem getting the images. The ds.pixel_array throws an attribute exception.
I can retrieve tags and bytes of stored images via indexes, but then when using:
dataset.BasicGrayscaleImageSequence[0].pixel_array
it can't find TransferIndex.I tried to use numpy.frombuffer, but it didn't get valid results.
I can get the PixelData, which I demonstrate in the code below. Question - how can I use this data to display in matplotlib?
Beta Was this translation helpful? Give feedback.
All reactions