imagej / ImageJ

Public domain software for processing and analyzing scientific images
http://imagej.org
Other
557 stars 221 forks source link

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

Open Sethur opened 2 years ago

Sethur commented 2 years ago

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.