Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace java.awt.image.ColorModel with net.imglib2.display.ColorTable #239

Open
hinerm opened this issue Jan 15, 2015 · 0 comments
Open
Milestone

Comments

@hinerm
Copy link
Member

hinerm commented Jan 15, 2015

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.

@hinerm hinerm self-assigned this Jan 16, 2015
@hinerm hinerm added this to the 1.0.0 - Official Release milestone Mar 11, 2015
@hinerm hinerm removed their assignment Mar 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant