Skip to content

Commit 87cd9e5

Browse files
jo-muellerbogovicj
andcommitted
chore: clarify examples
Co-Authored-By: John Bogovic <bogovicj@users.noreply.github.com>
1 parent 9d46073 commit 87cd9e5

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,9 +1095,9 @@ The `c` axis holds the corresponding output coordinates.
10951095
If the array in `coordinates` contains the data:
10961096
```
10971097
[
1098-
[-9], // Output coordinate for i=0
1099-
[9], // Output coordinate for i=1
1100-
[0] // Output coordinate for i=2
1098+
[-9], // Output coordinate for index=0, i=0
1099+
[9], // Output coordinate for index=1, i=1
1100+
[0] // Output coordinate for index=2, i=2
11011101
]
11021102
```
11031103

@@ -1126,7 +1126,7 @@ A 1D example displacement field:
11261126
```
11271127

11281128
where we assume input coordinate systems `input` and `output` are defined elsewhere.
1129-
We furthermore assume that the input coordinate system `input` has one axis named `i` that is discrete and corresponds to pixel positions along the i-axis,
1129+
We furthermore assume that the input coordinate system `input` has one axis named `i`,
11301130
and that the output coordinate system `output` has one axis named `x` that is continuous and corresponds to physical positions along the x-axis.
11311131
Example metadata under the attributes of the zarr array at path `displacements` above:
11321132

@@ -1160,9 +1160,9 @@ If the array in `displacements` contains the data:
11601160

11611161
```
11621162
[
1163-
[-1], // Displacement for x=0
1164-
[0], // Displacement for x=1
1165-
[1] // Displacement for x=2
1163+
[-1], // Displacement for index=0, x=0
1164+
[0], // Displacement for index=1, x=2
1165+
[1] // Displacement for index=2, x=4
11661166
]
11671167
```
11681168

0 commit comments

Comments
 (0)