Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: Add resolution support to getTile #271

Open
joshmoore opened this issue Nov 25, 2020 · 1 comment
Open

RFE: Add resolution support to getTile #271

joshmoore opened this issue Nov 25, 2020 · 1 comment

Comments

@joshmoore
Copy link
Member

It should be easier to load a lower-resolution tile from the getTile method rather than:

    # Get info on number of levels and sizes
    print([(r.sizeX, r.sizeY) for r in pix.getResolutionDescriptions()])

    pix.setResolutionLevel(2)
    print(pix.getTileSize())
    w, h = pix.getTileSize()
    tile = pix.getTile(z, c, t, x, y, w, h)

Questions:

  • Ignore or raise on bad resolution setting?
  • Pass resolution level or desired tile size?
  • Use local downsampling when no appropriate resolution is available?

see: https://forum.image.sc/t/omero-py-how-to-get-tiles-at-different-zoom-level-pyramidal-image/45643/2?u=joshmoore

cc: @will-moore

@joshmoore
Copy link
Member Author

@will-moore also points out that at resolution 1 there were exceptions of the form:

 File "/opt/anaconda3/envs/omeroweb22/lib/python3.7/site-packages/omero_api_RawPixelsStore_ice.py", line 998, in getTile
    return _M_omero.api.RawPixelsStore._op_getTile.invoke(self, ((z, c, t, x, y, w, h), _ctx))
omero.InternalException: exception ::omero::InternalException
{
    serverStackTrace = ome.conditions.InternalException:  Wrapped Exception: (java.lang.RuntimeException):
loci.formats.FormatException: Invalid tile size: x=0, y=0, w=256, h=256

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant