imagej / imagej/imagej-common

ArrayOutOfBoundsException when using UIService to show image with origin not at zero

Open
#68 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
12
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Minimal example:
```
RandomAccessibleInterval image = Views.translate(ArrayImgs.floats(10, 10), 50, 50);
new Context().service(UIService.class).show(image);
```
produces several an ArrayOutOfBoundExceptions.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running the minimal Java example in the issue, then trace the UIService.show path for the translated RandomAccessibleInterval. Done means the image with origin (50, 50) displays without ArrayOutOfBoundsException; no specific source file or test is named, so locating the relevant implementation and regression coverage will require repository exploration.

Written by the indexing model from the issue text.

Assessment

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