You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the SCIFIO Writers (and corresponding SCIFIOConfig) we attach java.awt.image.ColorModels. These seem only to be used in the code as LUTs, e.g. when instanceof IndexedColorTable in APNG, AVI, JPEG2k and TIFF formats.
I think this was a historical left over from Bio-Formats originally being written against java.awt.image.BufferedImages, before migrating to byte[].
In SCIFIO, our LUT standard is the net.imglib2.display.ColorTable. Writers for formats with LUTs should therefore be pulling ColorTables off A) the provided Plane objects, or B) the Writer's attached Metadata.
The corresponding SCIFIOConfig#writerXXXColorModel methods should be similarly updated to take ColorTable objects.
The text was updated successfully, but these errors were encountered:
In the SCIFIO
Writer
s (and correspondingSCIFIOConfig
) we attachjava.awt.image.ColorModels
. These seem only to be used in the code as LUTs, e.g. wheninstanceof IndexedColorTable
in APNG, AVI, JPEG2k and TIFF formats.I think this was a historical left over from Bio-Formats originally being written against
java.awt.image.BufferedImage
s, before migrating tobyte[]
.In SCIFIO, our LUT standard is the
net.imglib2.display.ColorTable
.Writer
s for formats with LUTs should therefore be pullingColorTable
s off A) the providedPlane
objects, or B) theWriter
's attachedMetadata
.The corresponding
SCIFIOConfig#writerXXXColorModel
methods should be similarly updated to takeColorTable
objects.The text was updated successfully, but these errors were encountered: