I noticed this weird bug (all macros are groovy):
Just make an image in 16-bits:
#@ImageJ ij import ij.IJ; imp = IJ.createImage("TestImg16b", "16-bit ramp", 512, 512, 1);
Now launch this dummy groovy script:
#@ImgPlus img #@OUTPUT ImgPlus img
This duplicates the ramp image. So far so good.
- close the extra image,
- change the TestImg16b to 32-bits (
- crop a rectangle anywhere to modify the image
- relaunch the dummy groovy script
Surprise! The old unmodified 16 bits image shows up. And this is due to the change in bit depth. This is annoying because it can lead to incomprehensible bugs.