Index error when performing Equalization of stacked histogram
- Dominant language
- Java
- Stars
- 786
- Forks
- 267
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
Fiji just returns me a index out of bounds when applying a equalization of the stacked image with the stacked histogram, but my image contain the correct size.
# Error
(Fiji Is Just) ImageJ 2.16.0/1.54p; Java 1.8.0_322 [64-bit]; Windows 10 10.0; 437MB of 23552MB (1%)
java.lang.ArrayIndexOutOfBoundsException: 256
at ij.plugin.ContrastEnhancer.getWeightedValue(ContrastEnhancer.java:333)
at ij.plugin.ContrastEnhancer.equalize(ContrastEnhancer.java:316)
at ij.plugin.ContrastEnhancer.equalize(ContrastEnhancer.java:279)
at ij.plugin.ContrastEnhancer.run(ContrastEnhancer.java:33)
at ij.IJ.runPlugIn(IJ.java:216)
at ij.Executer.runCommand(Executer.java:152)
at ij.Executer.run(Executer.java:70)
at java.lang.Thread.run(Thread.java:750)
# Image info
(Fiji Is Just) ImageJ 2.16.0/1.54p; Java 1.8.0_322 [64-bit]; Windows 10 10.0; 451MB of 23552MB (1%)
Title: C4_ZDF_NM_14Oct2022_Acq002.img
Width: 258 pixels
Height: 258 pixels
Depth: 588 pixels
Size: 75MB
Voxel size: 1x1x1 pixel^3
ID: -29
Bits per pixel: 16 (signed, grayscale LUT)
Display range: -1789 - 15823
Raw pixel value range: -2099 - 17761
Image: 68/588
No threshold
ScaleToFit: false
Calibration function: y = a+bx
a: -32768.000000
b: 1.000000
Unit: "Gray Value"
Path: D:\Ratas Carol\Diabetica+Fructosa\4NM\C4_ZDF_NM_14Oct2022_Acq002.img
Screen location: 826,247 (1920x1080)
Coordinate origin: 0,0,0
No properties
No overlay
No selection
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with ij.plugin.ContrastEnhancer.getWeightedValue and the equalize entry points named in the stack trace, using the reported stacked 16-bit image configuration as the reproduction context. Confirm the index-out-of-bounds failure and verify that equalization of a stacked image with a stacked histogram completes without the exception.
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
- 35/100