Skip to content

Commit 03545e6

Browse files
committed
Merge remote-tracking branch 'upstream/main' into displacements-coordinates-interpolation
2 parents 67f2a4c + 6cedb63 commit 03545e6

2 files changed

Lines changed: 63 additions & 44 deletions

File tree

index.md

Lines changed: 61 additions & 42 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.,
@@ -328,7 +328,7 @@ Then `dim_0` has length 4, `dim_1` has length 3, and `dim_2` has length 5.
328328
The axes and their order align with the shape of the corresponding Zarr array,
329329
and whose data depends on the byte order used to store chunks.
330330
As described in the [Zarr array metadata](https://zarr.readthedocs.io/en/stable/spec/v3.html#arrays),
331-
the last dimension of an array in "C" order are stored contiguously on disk or in-memory when directly loaded.
331+
the last dimension of an array in "C" order are stored contiguously on disk or in-memory when directly loaded.
332332

333333
The name and axes names MAY be customized by including a `arrayCoordinateSystem` field
334334
in the user-defined attributes of the array whose value is a coordinate system object.
@@ -467,7 +467,7 @@ The following transformations are supported:
467467
| [`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. |
468468

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

472472
:::{dropdown} Example
473473
(spec:example:coordinate_transformation_scale)=
@@ -478,7 +478,7 @@ Implementations SHOULD prefer to store transformations as a sequence of less exp
478478
{ "name": "in", "axes": [{"name": "j"}, {"name": "i"}] },
479479
{ "name": "out", "axes": [{"name": "y"}, {"name": "x"}] }
480480
],
481-
"coordinateTransformations": [
481+
"coordinateTransformations": [
482482
{
483483
"type": "scale",
484484
"scale": [2, 3.12],
@@ -508,15 +508,15 @@ Conforming readers:
508508
- SHOULD be able to apply transformations to images;
509509

510510
Coordinate transformations can be stored in multiple places to reflect different use cases.
511-
511+
512512
- **Inside `multiscales > datasets`**: `coordinateTransformations` herein MUST be restricted
513513
to a single `scale`, `identity` or `sequence` of a scale followed by a translation transformation.
514514
For more information, see [multiscales section below](#multiscales-md).
515515
- **Inside `multiscales > coordinateTransformations`**: Additional transformations for single multiscale images MAY be stored here.
516516
The `coordinateTransformations` field MUST contain an array of valid [transformations](#trafo-types-md).
517517
The input to every one of these transformations MUST be the intrinsic coordinate system.
518518
The output can be another coordinate system defined under `multiscales > coordinateSystems`.
519-
519+
520520
- **Inside `scene > coordinateTransformations`**: Transformations between two or more images
521521
MUST be stored in the attributes of a [`scene` object](#scene-md) in a [scene Zarr group](#scene-format).
522522
In this case, the `input` and `output` values are objects
@@ -547,9 +547,9 @@ where a coordinate is the location/value of that point along its corresponding a
547547
The indexes of axis dimensions correspond to indexes into transformation parameter arrays (see examples).
548548

549549
**Image rendering**: When rendering transformed images and interpolating,
550-
implementations may need the "inverse" transformation - from the fixed
551-
image's to the source image's coordinate system. This transformation may
552-
not explicitly exist, but might be the require computing the inverse
550+
implementations may need the "inverse" transformation - from the fixed
551+
image's to the source image's coordinate system. This transformation may
552+
not explicitly exist, but might be the require computing the inverse
553553
(in closed form) of an explicitly specified forward transformation.
554554

555555
Inverse transformations used for image rendering may be specified
@@ -562,8 +562,8 @@ that the requested operation is unsupported.
562562

563563
:::{dropdown} Example
564564

565-
Implementations SHOULD be able to compute and apply the inverse of some coordinate
566-
transformations when they are computable in closed-form (as the
565+
Implementations SHOULD be able to compute and apply the inverse of some coordinate
566+
transformations when they are computable in closed-form (as the
567567
[Transformation types](#trafo-types-md) section below indicates).
568568
Implementations should be able to render the moving image into the fixed
569569
image by computing the inverse of this transformation.
@@ -576,10 +576,10 @@ image by computing the inverse of this transformation.
576576
}
577577
```
578578

579-
Software libraries that perform image registration often return the transformation
580-
from fixed image coordinates to moving image coordinates, because this "inverse"
579+
Software libraries that perform image registration often return the transformation
580+
from fixed image coordinates to moving image coordinates, because this "inverse"
581581
transformation is most often required when rendering the transformed moving image.
582-
Implementations should be able to render the moving image into the fixed image by
582+
Implementations should be able to render the moving image into the fixed image by
583583
applying this transformation directly.
584584

585585
```json
@@ -590,7 +590,7 @@ applying this transformation directly.
590590
}
591591
```
592592

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

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

626-
Input and output dimensionality may be determined by the coordinate system referred to by the `input` and `output` fields, respectively.
626+
Input and output dimensionality may be determined by the coordinate system referred to by the `input` and `output` fields, respectively.
627627
If the value of `input` is a path to an array, its shape gives the input dimension,
628628
otherwise it is given by the length of `axes` for the coordinate system with the name of the `input`.
629629
If the value of `output` is an array, its shape gives the output dimension,
@@ -734,7 +734,7 @@ The array MUST have length `N`.
734734
defines the function:
735735

736736
```
737-
x = i + 9
737+
x = i + 9
738738
y = j - 1.42
739739
```
740740
:::
@@ -1087,7 +1087,7 @@ then this metadata defines the following function to map
10871087
the `i` axis (`input` coordinate system) to the `x` axis (`output` coordinate system):
10881088

10891089
```
1090-
x =
1090+
x =
10911091
if ( i < 0.5 ) -9
10921092
else if ( i >= 0.5 and i < 1.5 ) 9
10931093
else if ( i >= 1.5 ) 0
@@ -1321,18 +1321,18 @@ It is stored in a multiple resolution representation.
13211321
Each `multiscales` object MUST contain the field `coordinateSystems`,
13221322
whose value is an array containing coordinate system metadata
13231323
(see [coordinate systems](#coordinate-systems-md)).
1324+
The following conditions apply to all coordinate systems inside multiscales metadata:
1325+
1326+
- 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`).
1327+
- `axes` MUST contain 2 or 3 entries of `type:space`
1328+
- `axes` MAY contain one additional entry of `type:time`
1329+
- `axes` MAY contain one additional entry of `type:channel` or a null / custom type.
1330+
- `axes` entries MUST be ordered by `type` where the `time` axis must come first (if present),
1331+
followed by the `channel` or custom axis (if present) and the axes of type `space`.
1332+
- If there are three spatial axes where two correspond to the image plane (`yx`)
1333+
and images are stacked along the other (anisotropic) axis (`z`),
1334+
the spatial axes SHOULD be ordered as `zyx`.
13241335

1325-
The following MUST hold for all coordinate systems inside multiscales metadata.
1326-
The length of `axes` must be between 2 and 5
1327-
and MUST be equal to the dimensionality of the Zarr arrays storing the image data (see `datasets:path`).
1328-
The `axes` MUST contain 2 or 3 entries of `type:space`
1329-
and MAY contain one additional entry of `type:time`
1330-
and MAY contain one additional entry of `type:channel` or a null / custom type.
1331-
In addition, the entries MUST be ordered by `type` where the `time` axis must come first (if present),
1332-
followed by the `channel` or custom axis (if present) and the axes of type `space`.
1333-
If there are three spatial axes where two correspond to the image plane (`yx`)
1334-
and images are stacked along the other (anisotropic) axis (`z`),
1335-
the spatial axes SHOULD be ordered as `zyx`.
13361336
Each `multiscales` object MUST contain the field `datasets`,
13371337
which is an array of objects describing the arrays storing the individual resolution levels.
13381338
Each object in `datasets` MUST contain the field `path`,
@@ -1348,7 +1348,7 @@ that maps Zarr array coordinates for this resolution level to the "intrinsic" co
13481348
The transformation is defined according to [transformations metadata](#trafo-types-md).
13491349
The transformation MUST take as input points in the array coordinate system
13501350
corresponding to the Zarr array at location `path`.
1351-
The value of `input` MUST equal the value of `path`,
1351+
The value of `input` MUST equal the value of `path`,
13521352
implementations should always treat the value of `input` as if it were equal to the value of `path`.
13531353
The value of the transformation’s `output` coordinate system MUST be the same for every dataset in a single multiscales.
13541354
This coordinate system (the "intrinsic" coordinate system) will generally be a representation of the image in its native physical coordinate system.
@@ -1371,8 +1371,9 @@ If applications require additional transformations,
13711371
each `multiscales` object MAY contain the field `coordinateTransformations`,
13721372
describing transformations that are applied to all resolution levels in the same manner.
13731373
The value of `input` MUST equal the name of the "intrinsic" coordinate system.
1374-
The value of `output` MUST be the name of the output coordinate System
1375-
which is different from the "intrinsic" coordinate system.
1374+
The value of `output` MUST be the name of a coordinate system
1375+
which is different from the "intrinsic" coordinate system
1376+
and which is defined in the `coordinateSystems` field of the `multiscales` metadata.
13761377

13771378
Each `multiscales` object SHOULD contain the field `name`.
13781379

@@ -1517,7 +1518,7 @@ denoting arbitrary metadata associated with that label.
15171518
Label-value objects within the `properties` array do not need to have the same keys.
15181519

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

15231524

@@ -1624,10 +1625,10 @@ whose value MUST be an array of JSON objects specifying all fields of views for
16241625
Each image object MUST contain a `path` key
16251626
whose value MUST be a string specifying the path to the field of view.
16261627
The `path` MUST be case-sensitive, and MUST NOT be a duplicate of any other `path` in the `images` list.
1627-
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.
1628-
Specifically: The `path` MUST NOT consist only of periods (like `.` or `..`) or start with the reserved prefix `__`;
1629-
The `path` MUST NOT be an empty string and MUST NOT contain `/` characters;
1630-
The `path` MUST only use characters in the sets `a-z`, `A-Z`, `0-9`, `-`, `_`, `.`.
1628+
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.
1629+
Specifically: The `path` MUST NOT consist only of periods (like `.` or `..`) or start with the reserved prefix `__`;
1630+
The `path` MUST NOT be an empty string and MUST NOT contain `/` characters;
1631+
The `path` MUST only use characters in the sets `a-z`, `A-Z`, `0-9`, `-`, `_`, `.`.
16311632
If multiple acquisitions were performed in the plate,
16321633
it MUST contain an `acquisition` key whose value MUST be an integer identifying the acquisition
16331634
which MUST match one of the acquisition JSON objects defined in the [plate metadata](#plate-md).
@@ -1804,11 +1805,29 @@ but they should be updated in due course.
18041805

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

1808+
## License
1809+
1810+
This specification is derived from the [Community Specification Template](https://www.w3.org/People/Schepers/unoffical_template.html) provided by W3C,
1811+
under [the following terms](https://www.w3.org/copyright/software-license-2023/):
1812+
1813+
> 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:
1814+
> 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:
1815+
>
1816+
> The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
1817+
> Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software and Document Short Notice should be included.
1818+
> Notice of any changes or modifications, through a copyright statement on the new code or document such as:
1819+
> "This document includes material copied from or derived from Community Specification Template. Copyright &copy; 2025 W3C&reg; (MIT, ERCIM, Keio, Beihang)."
1820+
1821+
1822+
### Notice of Modifications:
1823+
This specification includes material copied from or derived from the Community Specification Template.
1824+
Copyright &copy; 2025 W3C&reg; (MIT, ERCIM, Keio, Beihang).
1825+
18071826
## Other resources
18081827

18091828
```{toctree}
18101829
:maxdepth: 1
18111830
18121831
examples/index
18131832
schemas/index
1814-
```
1833+
```

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)