You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add automatic layering by file name for non-DICOM images
Implements automatic layering based on file name patterns.
When loading files with matching names like base-image.nii and base-image.layer.nii, the layer file is automatically placed on top of the base image.
Copy file name to clipboardExpand all lines: docs/configuration_file.md
+22-8Lines changed: 22 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,15 +181,15 @@ Working segment group file formats:
181
181
182
182
hdf5, iwi.cbor, mha, nii, nii.gz, nrrd, vtk
183
183
184
-
## Automatic Segment Groups by File Name
184
+
## Automatic Layers and Segment Groups by File Name
185
185
186
-
When loading files, VolView can automatically convert images to segment groups
187
-
if they follow a naming convention. For example, an image with name like `foo.segmentation.bar`
188
-
will be converted to a segment group for a base image named like `foo.baz`.
189
-
The `segmentation` extension is defined by the `io.segmentGroupExtension` key, which takes a
190
-
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.
186
+
When loading multiple files, VolView can automatically associate related images based on file naming patterns.
187
+
Files matching `base.[extension].format` will be associated with a base image named `base.format`.
188
+
Both features default to `''` which disables them.
191
189
192
-
This will define `myFile.seg.nrrd` as a segment group for a `myFile.nii` base file.
190
+
### Segment Groups
191
+
192
+
Use `segmentGroupExtension` to automatically convert matching non-DICOM images to segment groups. For example, `myFile.seg.nrrd` becomes a segment group for `myFile.nii`:
193
193
194
194
```json
195
195
{
@@ -199,6 +199,18 @@ This will define `myFile.seg.nrrd` as a segment group for a `myFile.nii` base fi
199
199
}
200
200
```
201
201
202
+
### Layering
203
+
204
+
Use `layerExtension` to automatically layer matching non-DICOM images on top of the base image. For example, `myImage.layer.nii` is layered on top of `myImage.nii`:
205
+
206
+
```json
207
+
{
208
+
"io": {
209
+
"layerExtension": "layer"
210
+
}
211
+
}
212
+
```
213
+
202
214
## Keyboard Shortcuts
203
215
204
216
Configure the keys to activate tools, change selected labels, and more.
@@ -285,7 +297,9 @@ To configure a key for an action, add its action name and the key(s) under the `
0 commit comments