-
Notifications
You must be signed in to change notification settings - Fork 29
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
Scale bar does not correspond to the actual size #14
Comments
I've noticed the same behavior, using ImageJ to measure the scalebar and "set scale", followed by measuring the full width of the image with ctrl-M in ImageJ. The code below makes a 100 pix image with 0.1 micron/pixel, for 10 microns in extent. If we use the default length_fraction the scale bar is 1 micron and the image is about 9.3 microns measured. With length_fraction = 0.7, the scale bar is 5 microns and the extent (measured in ImageJ) is perfect. Anyway -- thanks for this! It's awesome. I'm writing a script to dump CrossCourt4 data as a batch export and this will help a lot.
|
The bar was drawn with an edge around it which made it longer than the actual size.
Thank you both for your comment. You are 100% right there was a mistake in the code. After many attempts to understand the problem I realized that the "bar" of the scale bar was drawn with an edge around it 😞 This made the "bar" appeared longer. Making the bar longer (with the I tried @parishcm's example and I got a length of 10.0769 in ImageJ. I committed a fix and I will release a new version soon. |
I just noticed this issue also because I tried to make the bar thicker but the size of the bar changed so I got suspicious. Any update on a fix, would be great to get an ETA so I can wait it out or try to apply the commit myself (could you ref the commit here?) |
Oops! Sorry just noticed it's commit 7f3683a and v5. Will update and check back |
I will close this issue not to cause confusion. Please reopen if you think the problem is still there. |
Dear all,
first of all, thank you very much for this, scalebars are kinda mandatory in research and having this in python is really nice.
I am having some issues when using ScaleBar. The bar does not correspond to the actual size it would have; could you help me with that?
I'm using this code:
This is the example image.
Thank you very much for your support.
The text was updated successfully, but these errors were encountered: