Skip to content

Commit 7f426e9

Browse files
committed
Merge branch 'add-authors' of https://github.com/jo-mueller/ngff-spec into add-authors
2 parents 4e0147b + 0abd3c8 commit 7f426e9

4 files changed

Lines changed: 59 additions & 19 deletions

File tree

examples/multiscales_strict/multiscales_example.json

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,19 @@
3939
{
4040
// the voxel size for the second scale level (downscaled by a factor of 2 -> 1 micrometer)
4141
// and the time unit (0.1 milliseconds), which is the same for each scale level
42-
"type": "scale",
43-
"scale": [0.1, 1.0, 1.0, 1.0, 1.0],
42+
"type": "sequence",
4443
"input": {"path": "s1"},
45-
"output": {"name": "intrinsic"}
44+
"output": {"name": "intrinsic"},
45+
"transformations": [
46+
{
47+
"type": "scale",
48+
"scale": [0.1, 1.0, 1.0, 1.0, 1.0]
49+
},
50+
{
51+
"type": "translation",
52+
"translation": [0, 0, 0.25, 0.25, 0.25]
53+
}
54+
]
4655
}
4756
]
4857
},
@@ -52,10 +61,19 @@
5261
{
5362
// the voxel size for the third scale level (downscaled by a factor of 4 -> 2 micrometer)
5463
// and the time unit (0.1 milliseconds), which is the same for each scale level
55-
"type": "scale",
56-
"scale": [0.1, 1.0, 2.0, 2.0, 2.0],
64+
"type": "sequence",
5765
"input": {"path": "s2"},
58-
"output": {"name": "intrinsic"}
66+
"output": {"name": "intrinsic"},
67+
"transformations": [
68+
{
69+
"type": "scale",
70+
"scale": [0.1, 1.0, 2.0, 2.0, 2.0]
71+
},
72+
{
73+
"type": "translation",
74+
"translation": [0, 0, 0.75, 0.75, 0.75]
75+
}
76+
]
5977
}
6078
]
6179
}

examples/multiscales_strict/multiscales_example_relative.json

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,42 @@
3939
},
4040
{
4141
"path": "s1",
42-
"coordinateTransformations": [{
43-
// the second scale level (downscaled by a factor of 2 relative to "s0" in zyx)
44-
"type": "scale",
45-
"scale": [1, 1, 2, 2, 2],
46-
"input" : {"path": "s1"},
47-
"output" : {"name": "intrinsic"}
48-
}]
42+
"coordinateTransformations": [
43+
{
44+
// the second scale level (downscaled by a factor of 2 relative to "s0" in zyx)
45+
"type": "sequence",
46+
"input" : {"path": "s1"},
47+
"output" : {"name": "intrinsic"},
48+
"transformations": [
49+
{
50+
"type": "scale",
51+
"scale": [1, 1, 2, 2, 2]
52+
},
53+
{
54+
"type": "translation",
55+
"translation": [0, 0, 0.5, 0.5, 0.5]
56+
}
57+
]
58+
}
59+
]
4960
},
5061
{
5162
"path": "s2",
5263
"coordinateTransformations": [{
5364
// the third scale level (downscaled by a factor of 4 relative to "s0" in zyx)
54-
"type": "scale",
55-
"scale": [1, 1, 4, 4, 4],
65+
"type": "sequence",
5666
"input" : {"path": "s2"},
57-
"output" : {"name": "intrinsic"}
67+
"output" : {"name": "intrinsic"},
68+
"transformations": [
69+
{
70+
"type": "scale",
71+
"scale": [1, 1, 4, 4, 4]
72+
},
73+
{
74+
"type": "translation",
75+
"translation": [0, 0, 1.5, 1.5, 1.5]
76+
}
77+
]
5878
}]
5979
}
6080
],

index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ Example metadata under the attributes of the zarr array at path `coordinateTrans
11641164
"coordinateTransformations" : [
11651165
{
11661166
"type" : "identity",
1167-
"output" : "a coordinate field transform"
1167+
"output" : {"name": "a coordinate field transform"}
11681168
}
11691169
]
11701170
}
@@ -1227,7 +1227,7 @@ Example metadata under the attributes of the zarr array at path `displacements`
12271227
{
12281228
"type" : "scale",
12291229
"scale" : [2, 1],
1230-
"output" : "a displacement field transform"
1230+
"output" : {"name": "a displacement field transform"}
12311231
}
12321232
]
12331233
}

version_history.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ All notable changes to this project will be documented in this file.
88

99
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1010

11-
## [0.6.dev3] - 2026-03-26
11+
## [0.6.dev4] - 2026-04-22
1212

1313
### Changed
1414

1515
- BREAKING CHANGE: Unified `input` and `output` fields in all transformation metadata to be an object of `{"name": string, "path": string}` instead of allowing both string and object forms. This change was made to ensure consistency across all transformations and to simplify the specification.
16+
- BREAKING CHANGE: Replaced `arrayCoordinateSystems` with explanation of how to properly express dimensionless transforms.
17+
- style: Improved readability of multiscales section and `coordinates`/`displacements` transformations.
1618

1719
## [0.6.dev3] - 2026-03-13
1820

0 commit comments

Comments
 (0)