Skip to content

Commit ec34293

Browse files
committed
docs: updated examples to include translations
1 parent 01bc83c commit ec34293

File tree

2 files changed

+54
-16
lines changed

2 files changed

+54
-16
lines changed

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": "s1",
45-
"output": "intrinsic"
44+
"output": "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.5, 0.5, 0.5]
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": "s2",
58-
"output": "intrinsic"
66+
"output": "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, 1.5, 1.5, 1.5]
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" : "s1",
47-
"output" : "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" : "s1",
47+
"output" : "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" : "s2",
57-
"output" : "intrinsic"
67+
"output" : "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
],

0 commit comments

Comments
 (0)