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

Display images one at a time #106

Open
RFSH opened this issue Jun 28, 2023 · 0 comments
Open

Display images one at a time #106

RFSH opened this issue Jun 28, 2023 · 0 comments

Comments

@RFSH
Copy link
Member

RFSH commented Jun 28, 2023

Currently, we're always assuming the individual images (URLs) are channels of the same image. So we're always blending them and showing them as channels. But we sometimes want to show these images one at a time.

The following are different ways that we can achieve this:

  1. We could use the same concept of channels and make sure we're showing the "channels" one at a time. So when users toggle a channel, all the other ones will be hidden. This would be simple to implement, and we just need to add a flag to turn this feature on. However, this means that we cannot have actual channels anymore (Each displayed image will be single channel and we won't try to blend images). Abusing the same channel concept might also be misleading and confusing.

  2. OpenSeadragon has a "sequence mode" which can be turned on. You can see how it works here. With this, instead of using addTiledImage API, we would have to set the images during load (OpenSeadragon({ tileSources: ... })). So as far as I could tell, we cannot mix the concept of channels with "sequence mode".

  3. As suggested here, we could handle switching between images ourselves. This gives us more flexibility. Since we're responsible for switching the images, we could have channels in this mode (Each displayed image could be a multi-channel image). This method is very similar to how we're supporting multi-Z images. We're basically clearing the canvas and repainting it with the channels from another Z.

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

2 participants