Configuration JSON File
By loading a JSON file, you can set VolView’s:
- Starting view layout (Axial Only, 3D Primary, etc).
- Labels for tools
- Visibility of Sample Data section
- Keyboard shortcuts
Starting view layout
The activeLayout
key has options (Axial Only, 3D Primary, etc.) defined in config.ts
{ |
Labels for tools
Each tool type (Rectangle, Polygon, etc.) can have tool specific labels. To share labels
across tools, define the defaultLabels
key and don’t provide labels for a tool that
should use the default labels.
{ |
Segment Group File Format
The segmentGroupSaveFormat
key specifies the file extension of the segment group images
VolView will include in the volview.zip file.
{ |
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.
{ |
Keyboard Shortcuts
Configure the keys to activate tools, change selected labels, and more.
All shortcut actions are under the ACTIONS
variable.
To configure a key for an action, add its action name and the key(s) under the shortcuts
section. For key combinations, use +
like Ctrl+f
.
{ |
Visibility of Sample Data section
Simplify the data browser by hiding the Sample Data expandable section.
{ |
Example JSON:
{ |
All options:
{ |