ImageJ
ImageJ copied to clipboard
Macro expression Overlay.size returns wrong results when using Synchronize Windows
Configuration: Java 1.8.0_311 (x64) ImageJ 1.53k Windows 10.0.19042.1466
Steps for Reproduction
- Open at least 2 multi-slice DICOM series
- Run Synchronize Windows and click on Synchronize All with default settings
- Without creating any overlays, use
Overlay.size
in a macro script on any of the open images. The return value is greater0
.
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.