Skip to content

Commit

Permalink
Merge pull request #588 from PaulHax/auto-seg-by-name
Browse files Browse the repository at this point in the history
Auto Segment Group by name
  • Loading branch information
floryst authored May 2, 2024
2 parents 35fa47f + afa8253 commit cb6356f
Show file tree
Hide file tree
Showing 8 changed files with 491 additions and 268 deletions.
20 changes: 19 additions & 1 deletion documentation/content/doc/configuration_file.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,28 @@ VolView will include in the volview.zip file.
}
```

These are the supported file formats:
Working segment group file formats:

hdf5, iwi.cbor, mha, nii, nii.gz, nrrd, vtk

## 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 will define `myFile.seg.nrrd` as a segment group for a `myFile.nii` base file.

```json
{
"io": {
"segmentGroupExtension": "seg"
}
}
```

## Keyboard Shortcuts

Configure the keys to activate tools, change selected labels, and more.
Expand Down
201 changes: 160 additions & 41 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"chai-almost": "^1.0.1",
"chai-as-promised": "7.1.1",
"chai-subset": "^1.6.0",
"chromedriver": "^121.0.2",
"chromedriver": "^124.0.1",
"concurrently": "^8.2.2",
"cross-env": "^7.0.3",
"eslint": "^7.32.0",
Expand Down Expand Up @@ -126,4 +126,4 @@
"eslint"
]
}
}
}
Loading

0 comments on commit cb6356f

Please sign in to comment.