@@ -12,16 +12,15 @@ from OMERO as zarr files, according to the spec at
12
12
https://github.com/ome/omero-ms-zarr/blob/master/spec.md
13
13
as well as Masks associated with Images.
14
14
15
- Images are 5D arrays of shape `(t, c, z, y, x) `.
15
+ Images are nD arrays of shape, up to `(t, c, z, y, x) `.
16
16
Plates are a hierarchy of `plate/row/column/field(image) `.
17
17
Masks are 2D bitmasks which can exist on muliplte planes of an Image.
18
18
In `ome-zarr ` sets of Masks are collected together into "labels".
19
19
20
20
It supports export using 2 alternative methods:
21
21
22
22
- By default the OMERO API is used to load planes as numpy arrays
23
- and the zarr file is created from this data. NB: currently, large
24
- tiled images are not supported by this method.
23
+ and the zarr file is created from this data.
25
24
26
25
- Alternatively, if you can read directly from the OMERO binary
27
26
repository and have installed https://github.com/glencoesoftware/bioformats2raw
@@ -37,16 +36,19 @@ Images and Plates
37
36
To export Images or Plates via the OMERO API::
38
37
39
38
40
- # Image will be saved in current directory as 1.zarr
39
+ # Image will be saved in current directory as 1.ome. zarr
41
40
$ omero zarr export Image:1
42
41
43
- # Plate will be saved in current directory as 2.zarr
42
+ # Plate will be saved in current directory as 2.ome. zarr
44
43
$ omero zarr export Plate:2
45
44
45
+ # Use the Image or Plate 'name' to save e.g. my_image.ome.zarr
46
+ $ omero zarr --name_by name export Image:1
47
+
46
48
# Specify an output directory
47
49
$ omero zarr --output /home/user/zarr_files export Image:1
48
50
49
- # By default, a tile size of 1024 is used. Specify values with
51
+ # By default, a tile (chunk) size of 1024 is used. Specify values with
50
52
$ omero zarr export Image:1 --tile_width 256 --tile_height 256
51
53
52
54
@@ -66,24 +68,28 @@ Masks and Polygons
66
68
67
69
To export Masks or Polygons for an Image or Plate, use the `masks ` or `polygons ` command::
68
70
69
- # Saved under 1.zarr/labels/0 - 1.zarr/ must already exist
71
+ # Saved under 1.ome.zarr/labels/0
72
+ # 1.ome.zarr/ should already exist...
70
73
$ omero zarr masks Image:1
71
74
72
- # Labels saved under each image. e.g 2.zarr/A/1/0/labels/0
73
- # Plate should already be exported
75
+ # ...or specify path with --source-image
76
+ $ omero zarr masks Image:1 --source-image my_image.ome.zarr
77
+
78
+ # Labels saved under each image. e.g 2.ome.zarr/A/1/0/labels/0
79
+ # 2.ome.zarr should already be exported or specify path with --source-image
74
80
$ omero zarr masks Plate:2
75
81
76
- # Saved under zarr_files/1.zarr/labels/0
82
+ # Saved under zarr_files/1.ome. zarr/labels/0
77
83
$ omero zarr --output /home/user/zarr_files masks Image:1
78
84
79
85
# Specify the label-name. (default is '0')
80
- # e.g. Export to 1.zarr/labels/A
86
+ # e.g. Export to 1.ome. zarr/labels/A
81
87
$ omero zarr masks Image:1 --label-name=A
82
88
83
89
# Allow overlapping masks or polygons (overlap will be maximum value of the dtype)
84
90
$ omero zarr polygons Image:1 --overlaps=dtype_max
85
91
86
- The default behaviour is to export all masks or polygons on the Image to a single 5D
92
+ The default behaviour is to export all masks or polygons on the Image to a single nD
87
93
"labeled" zarr array, with a different value for each Shape.
88
94
An exception will be thrown if any of the masks overlap, unless the `--overlaps `
89
95
option is used as above.
0 commit comments