How would I add a scale bar to images? #293
-
Hello, novice user here with some basic questions. I'm using histolab to extract random tiles at different levels. Is it possible to automatically add a scale bar to these images? Also, is the magnification of each level the original magnification divided by the downsample for the level? So for example, for a 40X image at level 0, if the downsample for level 2 was 16, the magnification would be 2.5X? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @afvrbanac I will transfer this issue in a github discussion!!! 😄 |
Beta Was this translation helpful? Give feedback.
-
Hi Alison, thank you for your questions, absolutely not trivial. Regarding the possibility to add a scale bar, we haven't thought of that as it is not optimal to have that if you want to use the tiles in a machine learning/deep learning pipeline. We can try and add the scalar bar as an optional parameter when saving the tiles (do you have specific needs?). Regarding the magnification level, your guess is correct; I have checked with an expert pathologist on a few samples and the conversion holds, so you can do the math by reading the downsample factor for each level by using the |
Beta Was this translation helpful? Give feedback.
Hi Alison, thank you for your questions, absolutely not trivial. Regarding the possibility to add a scale bar, we haven't thought of that as it is not optimal to have that if you want to use the tiles in a machine learning/deep learning pipeline. We can try and add the scalar bar as an optional parameter when saving the tiles (do you have specific needs?).
Regarding the magnification level, your guess is correct; I have checked with an expert pathologist on a few samples and the conversion holds, so you can do the math by reading the downsample factor for each level by using the
.properties
method of theslide
. I think that this conversion might be a nice feature to have so we will defini…