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

Calibration Bar under Analyze->Tools does now draw correctly with low zoom factors. #240

Open
Sethur opened this issue Feb 6, 2024 · 2 comments

Comments

@Sethur
Copy link

Sethur commented Feb 6, 2024

ImageJ v1.54e
Windows 10 x64
Java 11.0.14.1.

Description

When adding a Calibration Bar via Analyze->Tools and setting a low zoom level of, e.g., 0.1 (which is often necessary when adding calib. bars to very zoom in content), the calibration bar is not drawn correctly any more. As shown in the image below, the colored stripes protrude through the black border:

image

@rasband
Copy link
Member

rasband commented Feb 18, 2024

Please provide a small macro I can use to reproduces this bug.

@Sethur
Copy link
Author

Sethur commented Mar 6, 2024

@rasband Sorry for the slow response. Here is a macro for reproduction:

run("CT (16-bit DICOM)");
run("Fire");
run("In [+]");
run("In [+]");
run("In [+]");
run("In [+]");
run("In [+]");
run("In [+]");
makeRectangle(488, 212, 26, 34);
run("Calibration Bar...", "location=[At Selection] fill=None label=White number=5 decimal=0 font=12 zoom=0.3 overlay");

This will create a misrendered calibration bar in the top right of the zoomed part of the image. The misrendering happens when low zoom factors are set in the calibration bar tool (such as the 0.3 here), which is needed for high zoom levels.

image

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