Skip to content

Commit 8a32f83

Browse files
committed
Merge remote-tracking branch 'upstream/main' into unify-input-output
2 parents bd5175d + 6cedb63 commit 8a32f83

File tree

2 files changed

+60
-42
lines changed

2 files changed

+60
-42
lines changed

index.md

Lines changed: 58 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Note that the number of dimensions is variable between 2 and 5 and that axis nam
8383
│ ├── zarr.json # All image arrays must be up to 5-dimensional
8484
│ │ # with the axis of type time before type channel, before spatial axes.
8585
│ │
86-
│ └─ ... # Chunks are stored conforming to the Zarr array specification and
86+
│ └─ ... # Chunks are stored conforming to the Zarr array specification and
8787
│ # metadata as specified in the array's `zarr.json`.
8888
8989
└── labels
@@ -132,7 +132,7 @@ A well group SHOULD NOT be present if there are no images in the well.
132132
│ │ ├── 0 # First field of view of well A1
133133
│ │ │ │
134134
│ │ │ ├── zarr.json # Implements "multiscales", "omero"
135-
│ │ │ ├── s0 # Resolution levels
135+
│ │ │ ├── s0 # Resolution levels
136136
│ │ │ ├── ...
137137
│ │ │ └── labels # Labels (optional)
138138
│ │ └── ... # Other fields of view
@@ -201,10 +201,10 @@ object that MUST contain a `version` key, the value of which MUST be a string sp
201201
### "coordinateSystems" metadata
202202
(coordinate-systems-md)=
203203

204-
A `coordinateSystem` is a JSON object with a `name` field and a `axes` field.
204+
A coordinate system is a JSON object with a `name` field and a `axes` field.
205205
Every coordinate system:
206206
- MUST contain the field `name`.
207-
The value MUST be a non-empty string that is unique among all entries under `coordinateSystems`.
207+
The value MUST be a non-empty string that is unique among all entries in a `coordinateSystems` array.
208208
- MUST contain the field `axes`, whose value is an array of valid `axes` (see below).
209209
The elements of `axes` correspond to the index of each array dimension and coordinates for points in that coordinate system.
210210
For the below example, the `x` dimension is the last dimension.
@@ -230,7 +230,7 @@ Coordinate Systems metadata example
230230
The axes of a coordinate system (see below) give information
231231
about the types, units, and other properties of the coordinate system's dimensions.
232232
Axis names may contain semantically meaningful information, but can be arbitrary.
233-
As a result, two coordinate systems that have identical axes in the same order
233+
As a result, two coordinate systems that have identical axes in the same order
234234
may not be "the same" in the sense that measurements at the same point
235235
refer to different physical entities and therefore should not be analyzed jointly.
236236
Tasks that require images, annotations, regions of interest, etc.,
@@ -334,7 +334,7 @@ Then `dim_0` has length 4, `dim_1` has length 3, and `dim_2` has length 5.
334334
The axes and their order align with the shape of the corresponding Zarr array,
335335
and whose data depends on the byte order used to store chunks.
336336
As described in the [Zarr array metadata](https://zarr.readthedocs.io/en/stable/spec/v3.html#arrays),
337-
the last dimension of an array in "C" order are stored contiguously on disk or in-memory when directly loaded.
337+
the last dimension of an array in "C" order are stored contiguously on disk or in-memory when directly loaded.
338338

339339
The name and axes names MAY be customized by including a `arrayCoordinateSystem` field
340340
in the user-defined attributes of the array whose value is a coordinate system object.
@@ -475,7 +475,7 @@ The following transformations are supported:
475475
| [`byDimension`](#bydimension-md) | `"transformations":List[Transformation]`.<br>Transformations in the array MUST have<br>`"input_axes": List[number]`, <br> and `"output_axes": List[number]` | A high dimensional transformation using lower dimensional transformations on subsets of dimensions. |
476476

477477
Implementations SHOULD prefer to store transformations as a sequence of less expressive transformations where possible
478-
(e.g., sequence[translation, rotation], instead of affine transformation with translation/rotation).
478+
(e.g., sequence[translation, rotation], instead of affine transformation with translation/rotation).
479479

480480
:::{dropdown} Example
481481
(spec:example:coordinate_transformation_scale)=
@@ -486,7 +486,7 @@ Implementations SHOULD prefer to store transformations as a sequence of less exp
486486
{ "name": "in", "axes": [{"name": "j"}, {"name": "i"}] },
487487
{ "name": "out", "axes": [{"name": "y"}, {"name": "x"}] }
488488
],
489-
"coordinateTransformations": [
489+
"coordinateTransformations": [
490490
{
491491
"type": "scale",
492492
"scale": [2, 3.12],
@@ -567,9 +567,9 @@ where a coordinate is the location/value of that point along its corresponding a
567567
The indexes of axis dimensions correspond to indexes into transformation parameter arrays (see examples).
568568

569569
**Image rendering**: When rendering transformed images and interpolating,
570-
implementations may need the "inverse" transformation - from the fixed
571-
image's to the source image's coordinate system. This transformation may
572-
not explicitly exist, but might be the require computing the inverse
570+
implementations may need the "inverse" transformation - from the fixed
571+
image's to the source image's coordinate system. This transformation may
572+
not explicitly exist, but might be the require computing the inverse
573573
(in closed form) of an explicitly specified forward transformation.
574574

575575
Inverse transformations used for image rendering may be specified
@@ -582,8 +582,8 @@ that the requested operation is unsupported.
582582

583583
:::{dropdown} Example
584584

585-
Implementations SHOULD be able to compute and apply the inverse of some coordinate
586-
transformations when they are computable in closed-form (as the
585+
Implementations SHOULD be able to compute and apply the inverse of some coordinate
586+
transformations when they are computable in closed-form (as the
587587
[Transformation types](#trafo-types-md) section below indicates).
588588
Implementations should be able to render the moving image into the fixed
589589
image by computing the inverse of this transformation.
@@ -596,10 +596,10 @@ image by computing the inverse of this transformation.
596596
}
597597
```
598598

599-
Software libraries that perform image registration often return the transformation
600-
from fixed image coordinates to moving image coordinates, because this "inverse"
599+
Software libraries that perform image registration often return the transformation
600+
from fixed image coordinates to moving image coordinates, because this "inverse"
601601
transformation is most often required when rendering the transformed moving image.
602-
Implementations should be able to render the moving image into the fixed image by
602+
Implementations should be able to render the moving image into the fixed image by
603603
applying this transformation directly.
604604

605605
```json
@@ -610,7 +610,7 @@ applying this transformation directly.
610610
}
611611
```
612612

613-
Implementations are not expected to be able to to render the moving image
613+
Implementations are not expected to be able to to render the moving image
614614
into the fixed image given this transformation. They may attempt
615615
to do so by estimating the transformations' inverse if they choose to.
616616

@@ -637,7 +637,7 @@ When stored as a 2D json array, the inner array contains rows (e.g. `[[1,2,3], [
637637
#### Transformation types
638638
(trafo-types-md)=
639639

640-
Input and output dimensionality may be determined by the coordinate system referred to by the `input` and `output` fields, respectively.
640+
Input and output dimensionality may be determined by the coordinate system referred to by the `input` and `output` fields, respectively.
641641
If the value of `input` is a path to an array, its shape gives the input dimension,
642642
otherwise it is given by the length of `axes` for the coordinate system with the name of the `input`.
643643
If the value of `output` is an array, its shape gives the output dimension,
@@ -748,7 +748,7 @@ The array MUST have length `N`.
748748
defines the function:
749749

750750
```
751-
x = i + 9
751+
x = i + 9
752752
y = j - 1.42
753753
```
754754
:::
@@ -993,7 +993,7 @@ of the `i`th output axis. See the example below.
993993

994994
`coordinates` and `displacements` transformations are not invertible in general,
995995
but implementations MAY approximate their inverses.
996-
Metadata for these coordinate transforms have the following fields:
996+
Metadata for these coordinate transforms have the following fields:
997997

998998
**path**
999999
: The location of the coordinate array in this (or another) container.
@@ -1047,7 +1047,7 @@ Example metadata for the array data at path `coordinates` above:
10471047
{ "name": "i", "type": "space", "discrete": true },
10481048
{ "name": "c", "type": "coordinate", "discrete": true }
10491049
]
1050-
}
1050+
}
10511051
],
10521052
"coordinateTransformations" : [
10531053
{
@@ -1061,7 +1061,7 @@ Example metadata for the array data at path `coordinates` above:
10611061
If the array in `coordinates` contains the data: `[-9, 9, 0]`, then this metadata defines the function:
10621062

10631063
```
1064-
x =
1064+
x =
10651065
if ( i < 0.5 ) -9
10661066
else if ( i >= 0.5 and i < 1.5 ) 9
10671067
else if ( i >= 1.5 ) 0
@@ -1093,7 +1093,7 @@ Example metadata for the array data at path `displacements` above:
10931093
{ "name": "x", "type": "space", "unit" : "nanometer" },
10941094
{ "name": "d", "type": "displacement", "discrete": true }
10951095
]
1096-
}
1096+
}
10971097
],
10981098
"coordinateTransformations" : [
10991099
{
@@ -1269,18 +1269,18 @@ It is stored in a multiple resolution representation.
12691269
Each `multiscales` object MUST contain the field `coordinateSystems`,
12701270
whose value is an array containing coordinate system metadata
12711271
(see [coordinate systems](#coordinate-systems-md)).
1272+
The following conditions apply to all coordinate systems inside multiscales metadata:
1273+
1274+
- The length of `axes` must be between 2 and 5 and MUST be equal to the dimensionality of the Zarr arrays storing the image data (see `datasets:path`).
1275+
- `axes` MUST contain 2 or 3 entries of `type:space`
1276+
- `axes` MAY contain one additional entry of `type:time`
1277+
- `axes` MAY contain one additional entry of `type:channel` or a null / custom type.
1278+
- `axes` entries MUST be ordered by `type` where the `time` axis must come first (if present),
1279+
followed by the `channel` or custom axis (if present) and the axes of type `space`.
1280+
- If there are three spatial axes where two correspond to the image plane (`yx`)
1281+
and images are stacked along the other (anisotropic) axis (`z`),
1282+
the spatial axes SHOULD be ordered as `zyx`.
12721283

1273-
The following MUST hold for all coordinate systems inside multiscales metadata.
1274-
The length of `axes` must be between 2 and 5
1275-
and MUST be equal to the dimensionality of the Zarr arrays storing the image data (see `datasets:path`).
1276-
The `axes` MUST contain 2 or 3 entries of `type:space`
1277-
and MAY contain one additional entry of `type:time`
1278-
and MAY contain one additional entry of `type:channel` or a null / custom type.
1279-
In addition, the entries MUST be ordered by `type` where the `time` axis must come first (if present),
1280-
followed by the `channel` or custom axis (if present) and the axes of type `space`.
1281-
If there are three spatial axes where two correspond to the image plane (`yx`)
1282-
and images are stacked along the other (anisotropic) axis (`z`),
1283-
the spatial axes SHOULD be ordered as `zyx`.
12841284
Each `multiscales` object MUST contain the field `datasets`,
12851285
which is an array of objects describing the arrays storing the individual resolution levels.
12861286
Each object in `datasets` MUST contain the field `path`,
@@ -1500,7 +1500,7 @@ denoting arbitrary metadata associated with that label.
15001500
Label-value objects within the `properties` array do not need to have the same keys.
15011501

15021502
The value of the `source` key MUST be a JSON object containing information about the original image from which the label image derives.
1503-
This object MAY include a key `image`, whose value MUST be a string specifying the relative path to a Zarr image group.
1503+
This object MAY include a key `image`, whose value MUST be a string specifying the relative path to a Zarr image group.
15041504
The default value is `../../` since most labeled images are stored in a "labels" group that is nested within the original image group.
15051505

15061506

@@ -1607,10 +1607,10 @@ whose value MUST be an array of JSON objects specifying all fields of views for
16071607
Each image object MUST contain a `path` key
16081608
whose value MUST be a string specifying the path to the field of view.
16091609
The `path` MUST be case-sensitive, and MUST NOT be a duplicate of any other `path` in the `images` list.
1610-
The `path` MUST follow [Zarr node name naming conventions](https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/core/index.rst#node-names) including the recommended limitations of characters to ensure consistency across different storage systems and programming languages.
1611-
Specifically: The `path` MUST NOT consist only of periods (like `.` or `..`) or start with the reserved prefix `__`;
1612-
The `path` MUST NOT be an empty string and MUST NOT contain `/` characters;
1613-
The `path` MUST only use characters in the sets `a-z`, `A-Z`, `0-9`, `-`, `_`, `.`.
1610+
The `path` MUST follow [Zarr node name naming conventions](https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/core/index.rst#node-names) including the recommended limitations of characters to ensure consistency across different storage systems and programming languages.
1611+
Specifically: The `path` MUST NOT consist only of periods (like `.` or `..`) or start with the reserved prefix `__`;
1612+
The `path` MUST NOT be an empty string and MUST NOT contain `/` characters;
1613+
The `path` MUST only use characters in the sets `a-z`, `A-Z`, `0-9`, `-`, `_`, `.`.
16141614
If multiple acquisitions were performed in the plate,
16151615
it MUST contain an `acquisition` key whose value MUST be an integer identifying the acquisition
16161616
which MUST match one of the acquisition JSON objects defined in the [plate metadata](#plate-md).
@@ -1787,11 +1787,29 @@ but they should be updated in due course.
17871787

17881788
See [Tools](https://ngff.openmicroscopy.org/tools/index.html).
17891789

1790+
## License
1791+
1792+
This specification is derived from the [Community Specification Template](https://www.w3.org/People/Schepers/unoffical_template.html) provided by W3C,
1793+
under [the following terms](https://www.w3.org/copyright/software-license-2023/):
1794+
1795+
> By obtaining and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions:
1796+
> Permission to copy, modify, and distribute this work, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the work or portions thereof, including modifications:
1797+
>
1798+
> The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
1799+
> Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software and Document Short Notice should be included.
1800+
> Notice of any changes or modifications, through a copyright statement on the new code or document such as:
1801+
> "This document includes material copied from or derived from Community Specification Template. Copyright &copy; 2025 W3C&reg; (MIT, ERCIM, Keio, Beihang)."
1802+
1803+
1804+
### Notice of Modifications:
1805+
This specification includes material copied from or derived from the Community Specification Template.
1806+
Copyright &copy; 2025 W3C&reg; (MIT, ERCIM, Keio, Beihang).
1807+
17901808
## Other resources
17911809

17921810
```{toctree}
17931811
:maxdepth: 1
17941812
17951813
examples/index
17961814
schemas/index
1797-
```
1815+
```

pre_build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ def build_footer():
157157
year = datetime.now().year
158158
footer_content = f"""
159159
<div>
160-
Copyright © 2020-{year}
161-
<a href="https://www.openmicroscopy.org/"><abbr title="Open Microscopy Environment">OME</abbr></a><sup>®</sup>.
160+
Copyright &copy; 2020-{year}
161+
<a href="https://www.openmicroscopy.org/"><abbr title="Open Microscopy Environment">OME</abbr></a><sup>&reg;</sup>.
162162
OME trademark rules apply.
163163
</div>
164164
"""

0 commit comments

Comments
 (0)