Kitware / UPennContrast

UPenn ?
https://upenn-contrast.netlify.com/
Apache License 2.0
8 stars 6 forks source link

Add a pixel scale bar #671

Closed arjunrajlab closed 3 months ago

arjunrajlab commented 4 months ago

It would be nice to have another scale bar that shows the number of pixels. I created a branch with the desired look:

https://github.com/Kitware/UPennContrast/tree/pixel-scale-bar

Here's what it should look like:

image

I made a very small edit to the code where I just add the widget and don't even track it, but probably needs to keep track of the widget and allow for deletion and so on. I think the interface for controlling it should be the following:

  1. Put an option here called "Show pixel scalebar" (enabled by default): image
  2. If you click on either scalebar, brings up this dialog: image

    Add a toggle option to the dialog for "Show pixel scalebar".

arjunrajlab commented 4 months ago

Can probably also fix this issue at the same time: https://github.com/Kitware/UPennContrast/issues/669

arjunrajlab commented 4 months ago

Also, depending on how much work it is, could we put in a color picker for the scale bar color?