NOTICE! This is a static HTML version of a legacy LOCI Software ticket.

LOCI projects are now located on GitHub. The Bio-Formats project can be found here.

Ticket #393 (closed defect: fixed)

Opened 2009-05-08T07:46:01-05:00

Last modified 2009-05-08T11:11:21-05:00

openThumbImage throws an exception for int16 images

Reported by: melissa Owned by: melissa
Priority: major Milestone: bio-formats-4.1
Component: bio-formats Severity: serious
Keywords: Cc:
Blocked By: Blocking:

Description

showinf -thumbs data/ics/mathieu/Green-original-ics2.ics

produces this exception:

Exception in thread "main" java.lang.IllegalArgumentException: Raster ShortInterleavedRaster: width = 128 height = 97 #numDataElements 1 is incompatible with ColorModel ColorModel: #pixelBits = 16 numComponents = 1 color space = java.awt.color.ICC_ColorSpace@f82ab4 transparency = 1 has alpha = false isAlphaPre = false
	at java.awt.image.BufferedImage.<init (BufferedImage.java:616)
	at loci.formats.AWTImageTools.makeBuffered(AWTImageTools.java:1593)
	at loci.formats.AWTImageTools.scale(AWTImageTools.java:1553)
	at loci.formats.FormatReader.openThumbImage(FormatReader.java:578)
	at loci.formats.ImageReader.openThumbImage(ImageReader.java:387)
	at loci.formats.tools.ImageInfo.testRead(ImageInfo.java:525)
	at loci.formats.tools.ImageInfo.testRead(ImageInfo.java:83)
	at loci.formats.tools.ImageInfo.main(ImageInfo.java:695)

Change History

comment:1 Changed 2009-05-08T11:11:21-05:00 by melissa

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

(In [5096]) Allow int16 images to be scaled. Closes #393.