These are chat archives for openseadragon/openseadragon

5th
Jan 2018
Douglas Russell
@dpwrussell
Jan 05 2018 15:32
Hey. We've just started using Openseadragon to visualize some pre-cooked (i.e. channel colours and intensities are already baked into the tiles from the server) microscopy images. What we were hoping to do is be able to switch the view between several different pre-cooked versions of the same image. I can do this with sequences pretty easily by adding several tilesources for the image and then just user viewer.goToPage to change the view. That works great for one image, but we were hoping to do the same for imaging collections. E.g. we have 10 images, each with 3 different visualization options. We want to display those 10 images in a couple of rows and initially they would are all using a particular visualization. Then (using external controls) I want to flip all of the images to the next visualization settings.
I think sequences and collections are mutually exclusive though and I was wondering if you have any advice on the best way to do this.
Joey Toppin
@ozette
Jan 05 2018 16:10
does anyone know how pyramidio determines the amount of zoom levels for any given image?
Ian Gilman
@iangilman
Jan 05 2018 18:10
@dpwrussell Yes, to do something like that you'll need to build it around the multi-image API: http://openseadragon.github.io/examples/multi-image/
You can lay everything, including alternate versions, all out in the viewer together, and set the opacity to 0 for anything you don't want showing. When it's time to switch to a different version, you just adjust the opacities as appropriate.
@ozette You're making a DZI with it using ScalablePyramidBuilder? If so, it just follows the DZI rules. You can learn more about the DZI format here: https://github.com/openseadragon/openseadragon/wiki/The-DZI-File-Format
You can indirectly control how many zoom levels by changing the tile size. Bigger tiles means fewer levels.
Douglas Russell
@dpwrussell
Jan 05 2018 18:13
@iangilman Ok, thanks. I don't need to do this right now, but what about if the number of different visualizations was also high? I expect with the opacity trick it will be obtaining way more tiles than are actually ever used as it will be getting all visualizations for every tile.
Ian Gilman
@iangilman
Jan 05 2018 18:14
With opacity 0 it doesn't fetch tiles.
Douglas Russell
@dpwrussell
Jan 05 2018 18:14
ah, smart.
thanks
Ian Gilman
@iangilman
Jan 05 2018 18:15
Depending on how you have it set up it might fetch the initial file descriptor, though... If you have a ton of these images, I recommend grabbing the file descriptors in a single bundle.
Douglas Russell
@dpwrussell
Jan 05 2018 18:16
I think that'll be ok for now as there aren't that many, but I'll bear that in mind.
Ian Gilman
@iangilman
Jan 05 2018 18:17
For instance, if you're using DZI, you'd use the "inline configuration" technique described in http://openseadragon.github.io/examples/tilesource-dzi/ and give it data you've loaded yourself via AJAX.
Cool.