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

Add scale bar #80

Open
nchuynh opened this issue Dec 1, 2021 · 3 comments
Open

Add scale bar #80

nchuynh opened this issue Dec 1, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request gating

Comments

@nchuynh
Copy link
Member

nchuynh commented Dec 1, 2021

Add a scale bar to the image viewer

@nchuynh nchuynh added enhancement New feature or request gating labels Dec 1, 2021
@kruegert
Copy link
Member

kruegert commented Dec 3, 2021

This is the scalebar that is used in minerva story: https://github.com/usnistgov/OpenSeadragonScalebar
Which can then be drawn directly in the seadragon panel instead of aside (as in the example above).

@kruegert
Copy link
Member

kruegert commented Dec 3, 2021

there is a function in our client-side data layer to get metadata, which should probably include the scale information (width heights in micros from the dataset, that can be used to calculate microns in viewport from pixels in viewport).
There should be code for this conversion in the scope2screen repository (check where the metadata call is called and used):
https://github.com/labsyspharm/scope2screen

@kruegert
Copy link
Member

kruegert commented Dec 3, 2021

here is a screenshot on how it looks in minerva story:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gating
Projects
None yet
Development

No branches or pull requests

2 participants