How are image stacks sorted?

102 views
Skip to first unread message

John Sly

unread,
May 16, 2022, 4:04:38 PM5/16/22
to Orthanc Users
I'm currently using orthanc with the osimis viewer. (I can pull the docker info for the specific image if needed), and I had a question about how stacks are organized. I've had a few physicians complain that the images are out of order when they view a study. I'll readily admit that I'm a programmer and I don't work in a cath lab. We are also collecting images from multiple cath labs and locations, so I think there is room for a wide variety of varience.

I wanted to see if there's anything I can do to make sure images are ordered properly or if there's anything I can pass along to the cath lab techs to make sure that the images are ordered correctly.

Any help or further info you can pass along would be hugely appreciated!!

Alain Mazy

unread,
May 17, 2022, 4:11:03 AM5/17/22
to John Sly, Orthanc Users
Hi John,

Here's the code that handles slices sorting:

It first tries to sort according to ImagePositionPatient and, if not possible, sort according to InstanceNumber or ImageIndex.
Note that, in order to sort according to ImagePositionPatient, the ImageOrientationPatient tag must be set correctly as well.

HTH

Alain.


--
You received this message because you are subscribed to the Google Groups "Orthanc Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orthanc-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/orthanc-users/d52da6f7-c121-495d-963c-422706361763n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages