You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -201,10 +201,10 @@ object that MUST contain a `version` key, the value of which MUST be a string sp
201
201
### "coordinateSystems" metadata
202
202
(coordinate-systems-md)=
203
203
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.
205
205
Every coordinate system:
206
206
- 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.
208
208
- MUST contain the field `axes`, whose value is an array of valid `axes` (see below).
209
209
The elements of `axes` correspond to the index of each array dimension and coordinates for points in that coordinate system.
210
210
For the below example, the `x` dimension is the last dimension.
@@ -230,7 +230,7 @@ Coordinate Systems metadata example
230
230
The axes of a coordinate system (see below) give information
231
231
about the types, units, and other properties of the coordinate system's dimensions.
232
232
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
234
234
may not be "the same" in the sense that measurements at the same point
235
235
refer to different physical entities and therefore should not be analyzed jointly.
236
236
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.
328
328
The axes and their order align with the shape of the corresponding Zarr array,
329
329
and whose data depends on the byte order used to store chunks.
330
330
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.
332
332
333
333
The name and axes names MAY be customized by including a `arrayCoordinateSystem` field
334
334
in the user-defined attributes of the array whose value is a coordinate system object.
@@ -467,7 +467,7 @@ The following transformations are supported:
467
467
|[`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. |
468
468
469
469
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).
471
471
472
472
:::{dropdown} Example
473
473
(spec:example:coordinate_transformation_scale)=
@@ -478,7 +478,7 @@ Implementations SHOULD prefer to store transformations as a sequence of less exp
Implementations should be able to render the moving image into the fixed
569
569
image by computing the inverse of this transformation.
@@ -576,10 +576,10 @@ image by computing the inverse of this transformation.
576
576
}
577
577
```
578
578
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"
581
581
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
583
583
applying this transformation directly.
584
584
585
585
```json
@@ -590,7 +590,7 @@ applying this transformation directly.
590
590
}
591
591
```
592
592
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
594
594
into the fixed image given this transformation. They may attempt
595
595
to do so by estimating the transformations' inverse if they choose to.
596
596
@@ -623,7 +623,7 @@ When stored as a 2D json array, the inner array contains rows (e.g. `[[1,2,3], [
623
623
#### Transformation types
624
624
(trafo-types-md)=
625
625
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.
627
627
If the value of `input` is a path to an array, its shape gives the input dimension,
628
628
otherwise it is given by the length of `axes` for the coordinate system with the name of the `input`.
629
629
If the value of `output` is an array, its shape gives the output dimension,
@@ -734,7 +734,7 @@ The array MUST have length `N`.
734
734
defines the function:
735
735
736
736
```
737
-
x = i + 9
737
+
x = i + 9
738
738
y = j - 1.42
739
739
```
740
740
:::
@@ -1087,7 +1087,7 @@ then this metadata defines the following function to map
1087
1087
the `i` axis (`input` coordinate system) to the `x` axis (`output` coordinate system):
1088
1088
1089
1089
```
1090
-
x =
1090
+
x =
1091
1091
if ( i < 0.5 ) -9
1092
1092
else if ( i >= 0.5 and i < 1.5 ) 9
1093
1093
else if ( i >= 1.5 ) 0
@@ -1321,18 +1321,18 @@ It is stored in a multiple resolution representation.
1321
1321
Each `multiscales` object MUST contain the field `coordinateSystems`,
1322
1322
whose value is an array containing coordinate system metadata
1323
1323
(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`.
1324
1335
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`.
1336
1336
Each `multiscales` object MUST contain the field `datasets`,
1337
1337
which is an array of objects describing the arrays storing the individual resolution levels.
1338
1338
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
1348
1348
The transformation is defined according to [transformations metadata](#trafo-types-md).
1349
1349
The transformation MUST take as input points in the array coordinate system
1350
1350
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`,
1352
1352
implementations should always treat the value of `input` as if it were equal to the value of `path`.
1353
1353
The value of the transformation’s `output` coordinate system MUST be the same for every dataset in a single multiscales.
1354
1354
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,
1371
1371
each `multiscales` object MAY contain the field `coordinateTransformations`,
1372
1372
describing transformations that are applied to all resolution levels in the same manner.
1373
1373
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.
1376
1377
1377
1378
Each `multiscales` object SHOULD contain the field `name`.
1378
1379
@@ -1517,7 +1518,7 @@ denoting arbitrary metadata associated with that label.
1517
1518
Label-value objects within the `properties` array do not need to have the same keys.
1518
1519
1519
1520
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.
1521
1522
The default value is `../../` since most labeled images are stored in a "labels" group that is nested within the original image group.
1522
1523
1523
1524
@@ -1624,10 +1625,10 @@ whose value MUST be an array of JSON objects specifying all fields of views for
1624
1625
Each image object MUST contain a `path` key
1625
1626
whose value MUST be a string specifying the path to the field of view.
1626
1627
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`, `-`, `_`, `.`.
1631
1632
If multiple acquisitions were performed in the plate,
1632
1633
it MUST contain an `acquisition` key whose value MUST be an integer identifying the acquisition
1633
1634
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.
1804
1805
1805
1806
See [Tools](https://ngff.openmicroscopy.org/tools/index.html).
1806
1807
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:
0 commit comments