Learn how to read a biomedical image with TileDB-Py API.
Slicing and reading your data in TileDB is essential step to access your data. For this reason, you have two options on how you can read your data into TileDB. In this tutorial, you will learn how to and slice your biomedical imaging data by using the native TileDB-Py API. This API is the main interface for interacting with TileDB in Python.
Each resolution layer is now a TileDB array and member of the image TileDB group. To get a more granular access to each level’s properties you need to access the metadata of the members of the group. The members are TileDB arrays representing each resolution level.
The TileDB-Py API is built for general purpose use and doesn’t assume anything about the data you’re working with (like the fact that it’s an image). This means that when you select parts of an image by using slicing, you may need to transpose the data afterwards. Transposing essentially reorders the data so that it’s in the correct format for other image processing libraries to understand.
Slice a resolution level
You can slice image data of a specific level with the read_region by defining the upper left coordinates and the size of your slice.