imagej / ImageJ

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

Error when duplicating an image *having >2 dimensions* with a selection outside the image borders #258

Closed bvandenbroek closed 2 months ago

bvandenbroek commented 2 months ago

Hi,

This issue is very much related to issue #254, It was resolved by Wayne, but apparently only for images with 2 dimensions (x and y). This problem still remains for all other images, as far I can see: duplicating an image with a selection outside the image borders causes a crash.

image

Reproduce with this IJ1 macro:

run("Neuron (5 channels)");
makeRectangle(800, 800, 50, 50);
run("Duplicate...", "title=test ignore");

or

run("Confocal Series");
makeRectangle(800, 800, 50, 50);
run("Duplicate...", "title=test ignore");

Best regards, Bram

rasband commented 2 months ago

This bug will be fixed in the ImageJ 1.54m1 daily build, due early next week.

rasband commented 2 months ago

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