ImageJ icon indicating copy to clipboard operation
ImageJ copied to clipboard

Macro expression Overlay.size returns wrong results when using Synchronize Windows

Open Sethur opened this issue 3 years ago • 0 comments

Configuration: Java 1.8.0_311 (x64) ImageJ 1.53k Windows 10.0.19042.1466

Steps for Reproduction

  1. Open at least 2 multi-slice DICOM series
  2. Run Synchronize Windows and click on Synchronize All with default settings
  3. Without creating any overlays, use Overlay.size in a macro script on any of the open images. The return value is greater 0.

Expected bahavior The return value of Overlay.size should be 0 when used on a synchronized DICOM stack without any previously created overlays.

Update:

I found that this behavior is caused by the Sync cursor setting, i.e. the red cross that is displayed with this setting in all synchronized windows is itself considered an overlay.

@rasband Is this the indented bevavior, this issue can be closed.

Sethur avatar Jan 19 '22 12:01 Sethur