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 #394 (closed defect: duplicate)

Opened 2011-03-24T10:50:46-05:00

Last modified 2011-04-28T15:29:14-05:00

Unsigned 16 bit images display as all black

Reported by: bdezonia Owned by: gharris
Priority: major Milestone: imagej-2.0-alpha2
Component: UI Framework Version:
Severity: serious Keywords:
Cc: Blocked By:


Opening the following samples (all of them 16-bit) displays images that are all black:

HeLa Cells, M51 Galaxy, Neuron, T1 Head

Change History

comment:1 Changed 2011-03-24T11:00:20-05:00 by bdezonia

Organ of Corti sample image also fails

comment:2 Changed 2011-03-24T11:03:59-05:00 by bdezonia

CT sample image displays as all gray. It is also 16 bit and thus may be related.

comment:3 Changed 2011-03-25T13:19:44-05:00 by bdezonia

Using the probe tool I've determined that all of these images have a small range of values within the maximum allowed range of 0-65535. It seems the image drawing code is not scaling the pixel values to a sensible display range. The code for handling and drawing BufferedImages in NavigableImagePanel is using BioFormats' AwtImageTools to create them and then drawing them with Java graphics code. Not sure where range scaling should be taking place. Is this something that should be done when color display and autoscaling is done for alpha 2?

comment:4 Changed 2011-03-25T17:47:01-05:00 by curtis

  • Owner changed from curtis to gharris
  • Status changed from new to assigned
  • Milestone changed from imagej-2.0-alpha1 to imagej-2.0-alpha2

Yes, color scaling is targeted for 2.0-alpha2. Changing milestone and assigning to Grant, who is in charge of this work.

comment:5 Changed 2011-04-28T15:29:14-05:00 by gharris

  • Status changed from assigned to closed
  • Resolution set to duplicate

Duplicate of #384