Closed jboulanger closed 1 year ago
Make Subset... seems to create a memory view of the original data instead of a copy resulting in the modification of the original pixels when modifying the newly created image.
run("Close All"); newImage("HyperStack", "8-bit grayscale-mode label", 100, 100, 4, 1, 1); run("Make Subset...", "channels=3,4"); print(getTitle); Stack.setChannel(2); makeOval(35, 19, 46, 40); setColor(128); fill();
This bug is fixed in the ImageJ 1.54d20 daily build. The commit is at https://github.com/imagej/ImageJ/commit/fbff377fd64d9f8865863a2c94364f0efa34eb51.
Thank you.
Make Subset... seems to create a memory view of the original data instead of a copy resulting in the modification of the original pixels when modifying the newly created image.