-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add DICOM SEG support and MPR, referenceLines and StackSync and more #3015
Conversation
✅ Deploy Preview for ohif-platform-viewer ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for ohif-platform-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Woah man this is exciting 🙂 I'll definitely be cracking open this branch when I get a spare second. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with some minor comments
extensions/cornerstone-dicom-seg/src/getSopClassHandlerModule.js
Outdated
Show resolved
Hide resolved
// if the below formula is not correct, on a viewport reset | ||
// it will jump to a different slice than the middle one which | ||
// was the initial slice, and we have some tools such as Crosshairs | ||
// which rely on a relative camera modifications and those will break. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I see why this should break crosshairs. Lets discuss
extensions/cornerstone/src/services/ViewportService/CornerstoneViewportService.ts
Outdated
Show resolved
Hide resolved
}, | ||
toggleStackImageSync: ({ toggledState }) => { | ||
if (!toggledState) { | ||
STACK_IMAGE_SYNC_GROUPS_INFO.forEach(syncGroupInfo => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commands module is getting pretty big, maybe it should be split into multiple files. Kind of ugly to start putting global variables at the top of the file like STACK_IMAGE_SYNC_GROUPS_INFO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I don't like the STACK_IMAGE_SYNC_GROUPS_INFO either, but this is a kind of a global thing that we need, where else do you think I should put it?
return viewportData; | ||
} | ||
|
||
public async invalidateViewportData( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this used for? Not sure I get it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When displaySet gets invalidated (patient weight change)
Codecov Report
@@ Coverage Diff @@
## v3-stable #3015 +/- ##
==============================================
+ Coverage 25.15% 38.27% +13.11%
==============================================
Files 119 98 -21
Lines 2862 2098 -764
Branches 555 432 -123
==============================================
+ Hits 720 803 +83
+ Misses 1856 1060 -796
+ Partials 286 235 -51
Continue to review full report at Codecov.
|
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
Great work! |
const segments = {}; | ||
|
||
dataset.SegmentSequence.forEach(segment => { | ||
const cielab = segment.RecommendedDisplayCIELabValue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here can be crashed. RecommendedDisplayCIELabValue is optional in dicom
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks I will fix it later
Hi team, |
This PR adds support for DICOM SEG read and various other features. Here is the summary
ohif-v3-rc-seg.mp4
ohif-v3-rc-mpr.mp4
ohif-v3-rc-reference-lines.mp4
Blocked by dcmjs-org/dicomweb-client#62
Thanks to