Skip to content

Question: Any way to get pyvips to distinguish between time and depth for tiff images? #151

@petoor

Description

@petoor

Hello.
This question is inspired by : libvips/ruby-vips#91
Is there a way to make pyvips.Image.new_from_file() return the dimension of bands and the dimensions of z?

Using your multipage tiff file as example : http://downloads.openmicroscopy.org/images/OME-TIFF/2016-06/bioformats-artificial/multi-channel-z-series.ome.tif

pyvips.Image.new_from_file("multi-channel-z-series.ome.tif", access="sequential")
yields : <pyvips.Image 439x167 char, 1 bands, b-w>

And we can then loop over the bands with the pages argument. However, it seems like the colorchannel and the z-channel are multiplied together...
That is, pyvips.Image.new_from_file("multi-channel-z-series.ome.tif", access="sequential", pages=13) yields the 3rd channel at the 4th time.

Compare this to bio formats, the metadata is.
Axes: 4
Axis 'x' size: 439
Axis 'y' size: 167
Axis 'c' size: 3
Axis 'z' size: 5
Pixel Datatype: i1

So the question is, is there a way to make pyvips return the metadata of (t,x,y,z,c)?
(Time, Height, Width, Depth, Color)

This would make it easier to structure data into a database.

Best regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions