Skip to content

Conversation

@IbrahimCSAE
Copy link
Collaborator

@IbrahimCSAE IbrahimCSAE commented Nov 16, 2025

Description

This PR adds additional validation to the ImageOrientationPatient value before accepting it, and it doesn't pass all conditions its rejected and the fallback is used.

Example file: clean_dicom.dcm.zip

This is an image with an invalid/illegal image orientation patient value [0,0,0,0,0,0], An all-zero orientation means both the row-direction and column-direction vectors are (0,0,0). Geometrically, this yields no defined image plane which leads to impossible display of the image. This PR adds a fallback incase of such scenarios so images can be displayed correctly.

Before / After:

CleanShot 2025-11-16 at 13 34 14 CleanShot 2025-11-16 at 13 35 08

@netlify
Copy link

netlify bot commented Nov 16, 2025

Deploy Preview for ohif-dev canceled.

Name Link
🔨 Latest commit e79ea81
🔍 Latest deploy log https://app.netlify.com/projects/ohif-dev/deploys/691a190e43a23e0009f67760

@cypress
Copy link

cypress bot commented Nov 16, 2025

Viewers    Run #5726

Run Properties:  status check passed Passed #5726  •  git commit e79ea81df6: ss
Project Viewers
Branch Review feat/additional-validation-of-image-orientation-patient
Run status status check passed Passed #5726
Run duration 02m 25s
Commit git commit e79ea81df6: ss
Committer Ibrahim
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 37
View all changes introduced in this branch ↗︎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants