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

Auto Segment Group by name #588

Merged
merged 8 commits into from
May 2, 2024
Merged

Conversation

PaulHax
Copy link
Collaborator

@PaulHax PaulHax commented Apr 29, 2024

Automatic Segment Groups by File Name

When loading files, VolView can automatically convert images to segment groups
if they follow a naming convention. For example, an image with name like foo.segmentation.bar
will be converted to a segment group for a base image named like foo.baz.
The segmentation extension is defined by the io.segmentGroupExtension key, which takes a
string. Files foo.[segmentGroupExtension].bar will be automatilly converted to segment groups for a base image named foo.baz. The default is '' and will disable the feature.

This config.json will define myFile.seg.nrrd as a segment group for a myFile.nii base file.

{
  "io": {
    "segmentGroupExtension": "seg"
  }
}

Test dataset

Zip with config-auto-seg.json, 3DUS-Fetus.nrrd, and 3DUS-Fetus.0.segmentation.nrrd
auto-seg-datasets.zip

PaulHax added 7 commits April 29, 2024 12:02
If a secondary DataSource has a name like foo.segmentation.bar
and the primary DataSource is named foo.baz, the secondary
DataSource will be loaded as a segment group.
Moves loadDataSources logic to composable,
keeps store mostly state.
Copy link

netlify bot commented Apr 29, 2024

Deploy Preview for volview-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit afa8253
🔍 Latest deploy log https://app.netlify.com/sites/volview-dev/deploys/663136a2bce602000844cbd3
😎 Deploy Preview https://deploy-preview-588--volview-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.

@floryst
Copy link
Collaborator

floryst commented May 2, 2024

LGTM

@floryst floryst added this pull request to the merge queue May 2, 2024
Merged via the queue into Kitware:main with commit cb6356f May 2, 2024
7 checks passed
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.

2 participants