Skip to content

Commit cffaeb8

Browse files
committed
chore: update examples
1 parent 171bb3c commit cffaeb8

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

index.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,8 @@ Implementations SHOULD prefer to store transformations as a sequence of less exp
443443
{
444444
"type": "scale",
445445
"scale": [2, 3.12],
446-
"input": "in",
447-
"output": "out"
446+
"input": {"name": "in"},
447+
"output": {"name": "out"}
448448
}
449449
]
450450
}
@@ -661,8 +661,8 @@ In the context of multiscales metadata, this could look like this:
661661
{
662662
"type": "scale",
663663
"scale": [0.5, 0.5],
664-
"input": "s0",
665-
"output": "intrinsic"
664+
"input": {"path": "s0"},
665+
"output": {"name": "intrinsic"}
666666
}
667667
]
668668
}
@@ -684,8 +684,6 @@ defines the mapping from the "intrinsic" coordinate system to the unitless "arra
684684
Another transformation (e.g. in a `scene`) could then use the "array" coordinate system as an input or output to define transformations in array units.
685685
:::
686686

687-
688-
689687
#### Matrix transformations
690688
(matrix-trafo-md)=
691689

@@ -1092,8 +1090,8 @@ For example, in 1D:
10921090
"name" : "a coordinate field transform",
10931091
"type": "coordinates",
10941092
"path" : "i2xCoordinates",
1095-
"input" : "i",
1096-
"output" : "x",
1093+
"input" : {"name": "i"},
1094+
"output" : {"name": "x"},
10971095
"interpolation" : "nearest"
10981096
}
10991097
```
@@ -1138,8 +1136,8 @@ A 1D example displacement field:
11381136
"name" : "a displacement field transform",
11391137
"type": "displacements",
11401138
"path" : "displacements",
1141-
"input" : "i",
1142-
"output" : "x",
1139+
"input" : {"name": "i"},
1140+
"output" : {"name": "x"},
11431141
"interpolation" : "linear"
11441142
}
11451143
```
@@ -1192,8 +1190,8 @@ the other two dimensions MUST be axes that are identical to the axes of the `in`
11921190
"coordinateTransformations" : [
11931191
{
11941192
"type": "displacements",
1195-
"input" : "in",
1196-
"output" : "out",
1193+
"input" : {"name": "in"},
1194+
"output" : {"name": "out"},
11971195
"path" : "displacementField"
11981196
}
11991197
]

0 commit comments

Comments
 (0)