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

TIFFFormat - Parse IJ 1.x color table #202

Closed
hinerm opened this issue Jun 17, 2014 · 1 comment
Closed

TIFFFormat - Parse IJ 1.x color table #202

hinerm opened this issue Jun 17, 2014 · 1 comment

Comments

@hinerm
Copy link
Member

hinerm commented Jun 17, 2014

ImageJ 1.x TIFFs have slice labels which can indicate alternate orderings of the lut. We should read and either:

a) store the information in the MetaTable
or
b) rearrange the color tables as indicated.

@hinerm
Copy link
Member Author

hinerm commented Jun 17, 2014

Upon further investigation it looks like there are problems with how the TIFFParser is storing the ImageJ1 comment and how it is retrieved here.

There are actual luts stored in the ImageJ comment and they are not extracted correctly (stored as a short array in the IFD)

@hinerm hinerm changed the title TIFFFormat - use IJ 1.x slice labels TIFFFormat - Parse IJ 1.x color table Jun 17, 2014
hinerm added a commit that referenced this issue Jun 18, 2014
ImageJ 1.x can write 8-bit lookup tables in the TIFF ImageJ 1.x comment.
These are not properly read when retrieved from the IFD as a String.
They need to be parsed by reading the metadata tags and determining the
actual offsets and lengths.

We now parse and use the IJ 1.x color table if needed.

Closes #202

NB: See also #203 for future plans
@hinerm hinerm closed this as completed in c8ea058 Jun 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant