ImageJ icon indicating copy to clipboard operation
ImageJ copied to clipboard

Index error when performing Equalization of stacked histogram

Open EnriqueFV opened this issue 11 months ago • 1 comments

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

EnriqueFV avatar Feb 27 '25 12:02 EnriqueFV

Could you make the image(C4_ZDF_NM_14Oct2022_Acq002.img) available so I can try and re-create the error?

I have a google drive link if you would like to use: https://drive.google.com/drive/folders/1t2gGyt5NMNvp2Ejo_4cZ4dIV8UKhsIMB?usp=sharing

Thanks!

Steve Cuniff

scuniff avatar Apr 23 '25 05:04 scuniff