2

I have a stack of DICOM images that I'm reading in with the Python dicom package:

my_dicom = dicom.read_file('my_dicom.dcm')  
my_dicom = my_dicom.pixel_array

My image is a actually a stack of 256 images, each with 3 channels and with dimensions of 256 height, and 256 width.

So I try:

my_dicom.shape

and get

(3, 256, 256, 256)

What is the order of the entries in the dimension output? I have a 1 in 6 change of picking the correct hypothesis. The documentation is not illuminating.

1 Answer 1

1

Assuming you have an Enhanced MR Color Image IOD, you should be looking at (color plane, rows, columns, slices).

In terms of reconstruction of the image, you'll need to look at the photometic interpretation, planar configuration, among other DICOM attributes.

See the IOD for more information on that:

Sign up to request clarification or add additional context in comments.

1 Comment

That's strange, because I have a stack of dicoms that I know are 3 channels, 180 images in the stack, and has a height of 480 pixels and a width of 680 pixels. Then, .shape gives me (3, 180, 480, 640)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.