Skip to content
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

fix(seg): jump to the first slice in SEG and RT that has data #4605

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

sedghi
Copy link
Member

@sedghi sedghi commented Dec 16, 2024

fixes #4593

and it fixes the initial slice to load for SEG and RTSTRUCT to be the slice that has data and is not empty

Cornerstone: Update SEG and SR viewports and enhance segmentation service

-  Added `usePositionPresentationStore` to `OHIFCornerstoneSEGViewport.tsx` to set position presentation for SEG viewports
-  Improved SR measurement viewport by streamlining props and enhancing `setPositionPresentation` logic
-  Modified `frameView.ts` and hanging protocols to adjust display set weights from 10 to 20 for better URL-based display set handling
-  Enhanced `SegmentationService` to track the first non-zero voxel image ID for SEG display sets
-  Refined `CornerstoneViewportService` to set initial image index based on referenced image ID and manage overlay functions
-  Enabled DICOM upload in `local_orthanc.js` configuration
-  Updated `yarn.lock` to use the latest versions of CornerstoneJS dependencies
```
Cornerstone DICOM: Update viewport and RT structure handling

-  Add `presentationIds` to viewport options for `OHIFCornerstonePMAPViewport` and `OHIFCornerstoneRTViewport` to enhance presentation management.
-  Introduce `ReferencedSOPInstanceUIDsSet` in `loadRTStruct` to track referenced SOP instances.
-  Modify contour processing to include `ContourImageSequence` and update `ReferencedSOPInstanceUIDsSet` accordingly.
-  Use `usePositionPresentationStore` in `OHIFCornerstoneRTViewport` to manage position presentations.
-  Replace `firstNonZeroVoxelImageId` with `firstSegmentedSliceImageId` for consistency in segmentation handling.
-  Ensure `firstSegmentedSliceImageId` is correctly assigned in `SegmentationService` and referenced in viewports.
```
Copy link

netlify bot commented Dec 16, 2024

Deploy Preview for ohif-dev ready!

Name Link
🔨 Latest commit df14845
🔍 Latest deploy log https://app.netlify.com/sites/ohif-dev/deploys/67606ce9b233e60008660f80
😎 Deploy Preview https://deploy-preview-4605--ohif-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Dec 16, 2024

Deploy Preview for ohif-platform-docs ready!

Name Link
🔨 Latest commit df14845
🔍 Latest deploy log https://app.netlify.com/sites/ohif-platform-docs/deploys/67606ce948f66a00089b11f1
😎 Deploy Preview https://deploy-preview-4605--ohif-platform-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@sedghi sedghi changed the title fix/initial seg rt fix(seg): jump to the first slice in SEG and RT that has data Dec 16, 2024
@sedghi sedghi requested a review from wayfarer3130 December 16, 2024 18:13
Copy link

cypress bot commented Dec 16, 2024

Viewers    Run #4556

Run Properties:  status check passed Passed #4556  •  git commit df14845f94: ```markdown
Project Viewers
Branch Review fix/initial-seg-rt
Run status status check passed Passed #4556
Run duration 02m 06s
Commit git commit df14845f94: ```markdown
Committer sedghi
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 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 44
View all changes introduced in this branch ↗︎

Copy link
Contributor

@wayfarer3130 wayfarer3130 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only the question on why the change to weight: 20 in the isDisplaySetFromUrl

@sedghi sedghi merged commit 9bf24d6 into master Dec 17, 2024
20 checks passed
@sedghi sedghi deleted the fix/initial-seg-rt branch January 14, 2025 20:24
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.

[Bug] Segmentation not loaded by default with initialSeriesInstanceUID
2 participants