imagej / imagej/imagej2

Selection tool and GUI update

Open
#277 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.4k
Forks
350
PR merge metrics
No merged PRs in 30d

Description

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](https://user-images.githubusercontent.com/53630218/104460846-59300100-558d-11eb-9c6d-2dc8638299b0.png)
4 - Do process 3 again in other points.
![image](https://user-images.githubusercontent.com/53630218/104461275-e5422880-558d-11eb-94e6-f7f569075937.png)
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](https://user-images.githubusercontent.com/53630218/104461639-5da8e980-558e-11eb-81a3-85112558fe65.png)

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

Thank you all

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue in ImageJ with the rectangle selection tool: create two square selections with Shift, join them, and drag the result. Compare this behavior with the oval selection tool; done means the GUI updates correctly after dragging a joined selection and tests cover the regression.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.