Ticket #137 (closed defect: fixed)
Opened 2007-05-22T16:07:39-05:00
Last modified 2007-05-23T08:34:40-05:00
FITS and PGM do not work with compressed data
Reported by: | curtis | Owned by: | melissa |
---|---|---|---|
Priority: | trivial | Milestone: | |
Component: | bio-formats | Severity: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by curtis)
Both FitsReader and PGMReader extend ImageJReader, a class that calls ImageJ to handle the image file. ImageJReader uses the ij.io.Opener.openImage(String, String) method to read the file, which relies on having the raw file path. Unfortunately, ImageJ does not have modular support for FITS or PGM parsing. The core FITS logic is in ij.plugin.FITS, specifically the embedded FitsDecoder class, but it is not coded to allow third-party software to access the parsing routine effectively. Similarly, ij.plugin.PGMReader handles PGM files, but again, without appropriate external hooks.
Since ImageJ is in the public domain, it would probably be easiest to simply adapt the FITS and PGM code from the aforementioned classes directly into Bio-Formats, eliminating the ImageJ dependency completely, and enabling support for compressed FITS and PGM data.