NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

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

Change History

comment:1 Changed 2013-07-22T16:20:05-05:00 by bdezonia

  • Blocking 1457 added

comment:2 Changed 2013-07-30T11:13:43-05:00 by bdezonia

  • Status changed from new to closed
  • Resolution set to fixed

Fixed with commit 755f6cf0352fb59f643ccd163cbdfc58b9217bc9