google / google/tensorstore

Adding driver for Tiff images

Open
#37 17 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
1.5k
Forks
145
PR merge metrics
No merged PRs in 30d

Description

Hello there.
I am trying to see if I can add support for reading (and eventually writing) Tiff images using tensorstore. The motivation is to be able to read/write large OMETiff images. Initially I am following the png driver example to create an interface with libtiff library. But, longer term, I would prefer to do the IO in a chunked fashion. Since Tiff has the concept of tiles (X and Y axis) and IFDs (Z axis and additional dimensions, at least according to OME spec), I think chucked IO will work similar to zarr driver.

I am looking for some guidance for getting started. For example, if I have something like the following, how does information of which file need to be opened gets to the driver?
```
tensorstore::Context context = Context::Default();
TENSORSTORE_CHECK_OK_AND_ASSIGN(auto store, tensorstore::Open({{"driver", "tiff"},
{"kvstore", {{"driver", "file"},
{"path", "p01_x01_y01_wx0_wy0_c1.ome.tif"}}
}},
context,
tensorstore::OpenMode::open,
tensorstore::RecheckCached{false},
tensorstore::ReadWriteMode::read).result());
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.