imagej / ImageJ

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

Make Subset... #208

Closed jboulanger closed 1 year ago

jboulanger commented 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();
rasband commented 1 year ago

This bug is fixed in the ImageJ 1.54d20 daily build. The commit is at https://github.com/imagej/ImageJ/commit/fbff377fd64d9f8865863a2c94364f0efa34eb51.

jboulanger commented 1 year ago

Thank you.