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(polySeg): able to handle holes inside contour segmentation #1080

Merged
merged 40 commits into from
Feb 15, 2024

Conversation

sedghi
Copy link
Member

@sedghi sedghi commented Feb 13, 2024

  • Move the view target detection into core for consistency
  • fix wrong name issue in video viewport
  • fix: video contour segmentations displaying and interpolating
  • fix: View rendering
  • Fix contour segmentation appearing on wrong viewport view
  • NPE
  • PR changes
  • Fix multiple contours issues
  • Fix annotation visibility on volume from stack
  • fix registration of contours and holey contours
  • fix tests
  • fix docs
  • Fix tests
  • PR changes
  • Fix interpolation combining
  • test: Add unit test for getLineSegmentsIntersection
  • Added edge condition test
  • fix: return midpoint for overlapping line segments
  • fix: invalid reference to getLineSegmentIntersections in jest file
  • fix: unit tests
  • Fix build
  • code review :: renamed 'containsPoint' to 'isPointOnLineSegment'
  • api
  • Add new utility function getRandomSampleFromArray
  • Add support for shift + left click in PolySegWasmContourToVolumeLabelmap
  • api

Context

Changes & Results

Testing

Checklist

PR

  • [] My Pull Request title is descriptive, accurate and follows the
    semantic-release format and guidelines.

Code

Public Documentation Updates

  • [] The documentation page has been updated as necessary for any public API
    additions or removals.

Tested Environment

  • [] "OS:
  • [] "Node version:
  • [] "Browser:

wayfarer3130 and others added 30 commits February 8, 2024 16:03
Copy link

netlify bot commented Feb 13, 2024

Deploy Preview for cornerstone-3d-docs ready!

Name Link
🔨 Latest commit 8e1423c
🔍 Latest deploy log https://app.netlify.com/sites/cornerstone-3d-docs/deploys/65ce1b4361efba00088e71d1
😎 Deploy Preview https://deploy-preview-1080--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.

@sedghi sedghi requested a review from lscoder February 15, 2024 13:54
Comment on lines +25 to +30
function shuffleArray<T>(array: T[]): void {
for (let i = array.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[array[i], array[j]] = [array[j], array[i]]; // Swap elements
}
}
Copy link
Collaborator

@lscoder lscoder Feb 15, 2024

Choose a reason for hiding this comment

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

👍
This way it runs in O(n) (faster) while the other option (sort + random) would run in O(n log(n)) (slower)

@sedghi sedghi changed the title feat/labelmap from contour with holes fix(polySeg): able to handle holes inside contour segmentation Feb 15, 2024
@sedghi sedghi merged commit c4796fb into main Feb 15, 2024
9 checks passed
@sedghi sedghi deleted the feat/labelmap-from-contour-with-holes branch January 22, 2025 16:05
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.

3 participants