ImageJ icon indicating copy to clipboard operation
ImageJ copied to clipboard

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

Open Sethur opened this issue 2 years ago • 2 comments

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

Sethur avatar Feb 06 '24 13:02 Sethur

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

rasband avatar Feb 18 '24 00:02 rasband

@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

Sethur avatar Mar 06 '24 09:03 Sethur