Ticket #137 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

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) (diff)

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.

Change History

comment:1 Changed 13 years ago by curtis

  • Description modified (diff)

comment:2 Changed 13 years ago by curtis

  • Description modified (diff)

comment:3 Changed 13 years ago by melissa

  • Status changed from new to closed
  • Resolution set to fixed

Native support for FITS/PGM added in r2804.

Note: See TracTickets for help on using tickets.