Data view for Histogram1d
- Dominant language
- Java
- Stars
- 12
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
It would be great have a data view for `Histogram1d` objects in order to do something like this:
```
Histogram1d histogram = ij.op().image().histogram(img);
ij.ui().show(histogram);
```
Currently this crashes with `java.lang.ArrayIndexOutOfBoundsException: 1` at [this line](https://github.com/imagej/imagej-common/blob/master/src/main/java/net/imagej/display/DefaultDatasetView.java#L340) because the `DefaultDatasetView` cannot handle 1D.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the referenced line in src/main/java/net/imagej/display/DefaultDatasetView.java and trace how dimensionality is handled when displaying a Histogram1d. Reproduce the shown ij.ui().show(histogram) case and determine the relevant display path. Done means Histogram1d objects can be shown without the ArrayIndexOutOfBoundsException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100