imagej / imagej/imagej2

Original ImageJ logic gets invoked in pure ImageJ2 GUI mode

Open
#311 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

Launch ImageJ2 via:
```
mvn -Pexec -Dscijava.ui=swing
```
When the ImageJ2 GUI comes up, choose _Process → Image Calculator..._ from the menu.

An original ImageJ dialog box appears with title "No Image" and message "There are no images open"

This is surprising—is the wrong "Image Calculator..." command executing? Or is ImageJ's active image logic being triggered indirectly somehow during execution of the ImageJ2 command `net.imagej.plugins.commands.calculator.ImageCalculator`? The menu item has the puzzle piece icon, indicating it's a SciJava/ImageJ2 command, so if the original ImageJ command is actually what runs when the menu item is clicked, that's :exploding_head:. But it's also :exploding_head: if original ImageJ's active image logic is somehow triggering from the ImageJ2 command code... :shrug:

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with `mvn -Pexec -Dscijava.ui=swing`, then start from `net.imagej.plugins.commands.calculator.ImageCalculator` and trace what runs when Process → Image Calculator is selected. Determine whether the original ImageJ dialog is invoked by the ImageJ2 command or by another path; done means the invocation source is identified and pure ImageJ2 mode behaves correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
computer-vision, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.