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

feat(surface-segmentation): add visibilty configuration for surface segmentation #1846

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

IbrahimCSAE
Copy link
Collaborator

Context

Adds visibility configuration to surface segmentations

Fixes: OHIF/Viewers#4796
Fixes: https://linear.app/ohif/issue/OHI-1667

Copy link

netlify bot commented Feb 24, 2025

Deploy Preview for cornerstone-3d-docs ready!

Name Link
🔨 Latest commit 40035de
🔍 Latest deploy log https://app.netlify.com/sites/cornerstone-3d-docs/deploys/67bc0b43095d26000884c5bf
😎 Deploy Preview https://deploy-preview-1846--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.

@@ -76,11 +77,12 @@ export function getSurfaceActorEntry(
segmentationId: string,
segmentIndex?: number | string
) {
return getActorEntry(viewportId, segmentationId, (actor) =>
// @ts-expect-error
actor.representationUID?.startsWith(
Copy link
Collaborator Author

@IbrahimCSAE IbrahimCSAE Feb 24, 2025

Choose a reason for hiding this comment

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

this gave me so much pain... 4 hours to figure out what was going on

this is not good because it will match Surface-1 with Surface 10, 11 , 12, 13, 14, 15 etc, or Surface-2 with 21, 22, 23.

such a horrible bug because it was saying there's an actor for a segment when there isn't one. I did the fix for labelmap as well because I assume it can happen there too

@IbrahimCSAE IbrahimCSAE requested a review from sedghi February 24, 2025 06:03
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] Visualize the selected segmentation labels in 3D viewport
1 participant