Do the filenames associated with a DICOM image series (from a single scan) match the spatial ordering? What I mean is if the patient was scanned “head first” is 000000.dcm
You might want to have a look at these links:
How to compare coordinates of different series 1
How to compare coordinates of different series 2
DICOM attributes used for calculating affine transformation
Recommended reading on DICOM in general and segregation of orientations