imagej / imagej2

Open scientific N-dimensional image processing :microscope: :sparkler:
https://imagej.net/
BSD 2-Clause "Simplified" License
1.17k stars 332 forks source link

Selection tool and GUI update #277

Open victorsapucaia opened 3 years ago

victorsapucaia commented 3 years ago

Hi,

Using the rectangle selection tool, I noticed something different in GUI.

1 - Open an image in ImageJ 2 - Select "rectangle selection tool" 3 - Press "Shift" to create a square selection. Pick the first point, drag, and released the mouse and "Shift". image 4 - Do process 3 again in other points. image 5 - After process 4, the 2 selections will join 6 - Dragging a selection, you can see that the image in the GUI is not updated correctly. The fact that does not occur when there is only one selection (without a union). image

This glitch does not occur with an oval selection tool. I suggest adopting the same implementation and tests.

Thank you all