imagej / imagej/imagej-ops

Invert ops do invert on the input and the ouput

Open
#473 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
94
Forks
44
PR merge metrics
No merged PRs in 30d

Description

Consider this script :

```python
# @Dataset data
# @ImageJ ij

out = ij.dataset().create(data)
out = ij.op().run("image.invert", data, out)
ij.ui().show(out)
```

Both `data` and `out` are inverted.

Is this a bug or am I doing something wrong ?

PS: `data` actually does not display the inverted image until you click on it.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with the Python script shown in the report, focusing on the image.invert operation and the behavior of data and out. Inspect the relevant ImageJ Ops implementation and existing tests; the fix is complete when only the output is inverted and the input remains unchanged, including after it is displayed.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
computer-vision
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.