Ticket #1948 (closed defect: fixed)
Opened 2013-07-12T11:34:08-05:00
Last modified 2013-07-30T11:13:43-05:00
Brightness/Contrast
Reported by: | curtis | Owned by: | bdezonia |
---|---|---|---|
Priority: | critical | Milestone: | imagej2-b8-analysis |
Component: | Analysis Plugins | Version: | |
Severity: | serious | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | #1457 |
Description
With code on the current master branch, if you have a channel where the min and max data values are equal, the Brightness & Contrast plugin fails to initialize.
- Press 'n' for new image
- Set "Fill With" to "Zero"
- Press 'c' for Brightness/Contrast
An exception is thrown:
Caused by: java.lang.IllegalArgumentException: invalid Real1dBinMapper: nonpositive data range specified at net.imglib2.histogram.Real1dBinMapper.<init>(Real1dBinMapper.java:87) at imagej.core.commands.display.interactive.BrightnessContrast.computeDataMinMax(BrightnessContrast.java:267) at imagej.core.commands.display.interactive.BrightnessContrast.viewChanged(BrightnessContrast.java:207) at imagej.core.commands.display.interactive.BrightnessContrast.initValues(BrightnessContrast.java:195) ... 16 more