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(examples): fix the stack and volume segmentation adapters example #1680

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

sedghi
Copy link
Member

@sedghi sedghi commented Dec 5, 2024

fixes #1679
fixes #1661
fixes #664
fixes #1188

This pull request introduces several new functions and refactors existing ones to improve the handling of DICOM files and segmentation in the Cornerstone library. The changes include adding new utility functions for reading, loading, and exporting DICOM and segmentation files, as well as refactoring the generateToolState function to use more descriptive parameter names.

New Utility Functions:

Refactoring:

Event Handling Improvements:

Utility Enhancements:

Copy link

stackblitz bot commented Dec 5, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

netlify bot commented Dec 5, 2024

Deploy Preview for cornerstone-3d-docs ready!

Name Link
🔨 Latest commit 238dd51
🔍 Latest deploy log https://app.netlify.com/sites/cornerstone-3d-docs/deploys/675263106ffbc8000845f084
😎 Deploy Preview https://deploy-preview-1680--cornerstone-3d-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.

…toolbar functionality

- Consolidated segmentation-related functions into a new utils module for better organization.
- Updated toolbar buttons to utilize the new state management for DICOM and SEG file handling.
- Enhanced user instructions for loading and exporting segmentation data.
- Introduced a toggle for handling overlapping segments during segmentation loading.
- Improved event handling for file selection and drag-and-drop functionality.
- Refactored rendering engine and viewport setup for clarity and maintainability.
@sedghi sedghi changed the title fix fix(examples): fix the stack and volume segmentation adapters example Dec 6, 2024
@sedghi sedghi merged commit 85e8ca4 into main Dec 6, 2024
26 checks passed
@napest
Copy link

napest commented Dec 6, 2024

@sedghi thank you for the fixes!
When I open https://www.cornerstonejs.org/live-examples/segmentationstack example and press "Import dicom" and choose one DICOM file, console shows error
image
When I choose several dicom files, it says
image

In Volume viewport example https://www.cornerstonejs.org/live-examples/segmentationvolume I press Import DICOM and choose some CT files, and nothing happens (tried all browsers)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants