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 alphabetical sorting for auto-layered files
Sort matching layers and segment groups alphabetically by filename to provide deterministic ordering. Users can control stacking order using numeric prefixes in filenames (e.g., file.layer.1.nii, file.layer.2.nii).
Updated documentation to clarify naming patterns and show that file formats don't need to match between base image and associated files.
## Automatic Layers and Segment Groups by File Name
185
185
186
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`.
187
+
Example: `base.[extension].nrrd` will match `base.nii`.
188
+
189
+
The extension must appear anywhere in the filename after splitting by dots, and the filename must start with the same prefix as the base image (everything before the first dot). Files matching `base.[extension]...` will be associated with a base image named `base.*`.
190
+
191
+
**Ordering:** When multiple layers/segment groups match a base image, they are sorted alphabetically by filename and added to the stack in that order. To control the stacking order explicitly, you could use numeric prefixes in your filenames.
Both features default to `''` which disables them.
189
199
190
200
### Segment Groups
191
201
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`:
202
+
Use `segmentGroupExtension` to automatically convert matching non-DICOM images to segment groups.
203
+
For example, `myFile.seg.nrrd` becomes a segment group for `myFile.nii`.
204
+
Defaults to `''` which disables matching.
193
205
194
206
```json
195
207
{
@@ -201,7 +213,8 @@ Use `segmentGroupExtension` to automatically convert matching non-DICOM images t
201
213
202
214
### Layering
203
215
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`:
216
+
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`.
0 commit comments