Skip to content

Auto Segment Group by name#588

Merged
floryst merged 8 commits intoKitware:mainfrom
PaulHax:auto-seg-by-name
May 2, 2024
Merged

Auto Segment Group by name#588
floryst merged 8 commits intoKitware:mainfrom
PaulHax:auto-seg-by-name

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.
@netlify
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
Contributor

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
PaulHax pushed a commit to PaulHax/VolView that referenced this pull request Apr 24, 2025
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