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
I recently came across an interesting use case. I have couple of microscopy software tools that export very large images as a series of .tiff (or .bpm, etc) files accompanied by a metadata file (.txt, .csv, or .json) which contains the relative positions of the images (usually via centre positions).
Therefore, I started by creating a very large .zarr array by something along the lines of
total_x, total_y = helperFunction(path2metadata)
z = zarr.creation.open_array(store=store, mode='a', shape=(total_y, total_x), chunks=(chunk_size,chunk_size), dtype=tile_type)
## df is a data frame containing the tile limits
for tile_idx, row in df.iterrows():
tile = image_reader(row['tile_path'])
x1, x2, y1, y2 = row['tile_lims']
z[y1:y2,x1:x2] = tile
Now, once I have the large .zarr it would be ideal to have functionality in ome-zarr-py to take this array as input and write an ome-zarr folder in a way similar to ome_zarr.writer.write_image
Dear ome team,
I recently came across an interesting use case. I have couple of microscopy software tools that export very large images as a series of .tiff (or .bpm, etc) files accompanied by a metadata file (.txt, .csv, or .json) which contains the relative positions of the images (usually via centre positions).
Therefore, I started by creating a very large .zarr array by something along the lines of
Now, once I have the large .zarr it would be ideal to have functionality in
ome-zarr-py
to take this array as input and write an ome-zarr folder in a way similar toome_zarr.writer.write_image
At the moment I had to use
dask
to create my own down-sampling scheme. Then I had to create appropriate minimal metadata for the ome-zarr (which was not as trivial, probably more examples of this would be great). Finally, I usedwrite_multiscales_metadata
to write the ome-zarr. A minimal example is available here: https://github.com/CamachoDejay/teaching-bioimage-analysis-python/blob/main/short_examples/zarr-from-tiles/zarr-minimal-example-tiles.ipynbPS: I forgot to also pin here this interesting discussion: napari/napari#5561 (comment)
The text was updated successfully, but these errors were encountered: