Skip to content

Index error when performing Equalization of stacked histogram #271

@EnriqueFV

Description

@EnriqueFV

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions