[ome-users] NullPointerException while decompressing color lossless JPEG images - bio-formats

Aaron Avery aaron.avery at healthmyne.com
Thu Jun 18 21:52:03 BST 2015


I found that I was unable to decompress color images, when bio-formats had
been working fine for single-channel images.
I tracked down the problem and fixed it in the code
(LosslessJPEGCodec.java). The decoder did not properly handle multiple
Huffman tables. There is one per color component (total of 3) in these
files, but the code always stopped processing after creating the first
table.

I also noticed that the existing code does not properly handle the (legal)
presence of real JPEG markers in the middle of the compressed data. I'm
sure it's extremely rare, but it is legal, so I modified the code to
properly skip over them in that case.

I would like to contribute my changes back to the project but am unsure how
to do that. I'm happy to do it via GitHub, or could email someone my
updated file (it's small). Please let me know.

Thank you,
- Aaron

-- 
*Health**Myne*

*"Enabling Evidence-based Care for Oncology"*

*Confidentiality Notice*: This communication, including any attachments, is 
for the sole use of the intended recipient(s) and may contain confidential 
and privileged information. Any unauthorized review, use, disclosure, 
printing, saving, or distribution is prohibited. If you are not the 
intended recipient, please immediately contact the sender by reply e-mail 
and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20150618/447fe9b9/attachment.html>


More information about the ome-users mailing list