Repository navigation
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
f2c3bc0 to
76f7eff
Compare
|
@dzenanz @thewtex This PR needs to be reviewed, and finalized before the next two DCMTK PR's can pass. The DCMTK series handling needed to be made more like GDCM to ensure tests were consistent across both GDCM and DCMTK. Derivatives of the test infrastructure are part of completing a long outstanding #2735 bad behaviors. |
The geometric slice ordering (added via PR InsightSoftwareConsortium#6456 for issue InsightSoftwareConsortium#6463) derived the slice normal from headers.front() alone. If the first file returned by the directory glob lacks ImageOrientationPatient (e.g. a localizer or a corrupt slice that sorted first), geometric ordering was silently suppressed for the entire series. Scan for the first slice carrying a valid orientation instead. Also correct the regression-test comment to cite issue InsightSoftwareConsortium#6463 rather than the downstream PR InsightSoftwareConsortium#6456. Addresses the greptile review on PR InsightSoftwareConsortium#6464.
76f7eff to
9169745
Compare
|
Sorry, I tried to split a branch with several commits into two PRs, then they diverged a bit. |
|
Status update — rebased onto current The core ordering fix originally in this PR ( What this PR now is (net +14/−3, 2 files)
Was |
Robustness follow-up to the DCMTKSeriesFileNames geometric ordering: derive the slice normal from the first slice that actually carries an ImageOrientationPatient, not just the first globbed file.
What remains in this PR
itkDCMTKSeriesFileNames.cxx— scan for the first slice with a valid orientation before computing the slice normal; a single mis-globbed entry withoutImageOrientationPatient(e.g. a localizer that sorted first) no longer suppresses geometric ordering for the whole series.itkDCMTKSeriesFileNamesOrderingGTest.cxx— comment now cites issue itk::DCMTKSeriesFileNames orders slices by InstanceNumber only, not geometrically like GDCMSeriesFileNames #6463 instead of the downstream PR COMP: Switch IOTransformDCMTK test from GDCMImageIO to DCMTKImageIO #6456.Net diff vs
main: 2 files, +14/−3. The ordering GTest passes;pre-commit run --all-filesis clean.