Changeset 2595


Ignore:
Timestamp:
04/10/07 17:25:33 (13 years ago)
Author:
curtis
Message:

Readd support for FITS and PGM using ImageJ, modeled after ImageIOReader.

Location:
trunk/loci/formats
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/in/ImageIOReader.java

    r2586 r2595  
    9393  public void close() throws FormatException, IOException { } 
    9494 
     95  // -- Internal FormatReader API methods -- 
     96 
    9597  /** Initializes the given file. */ 
    96   public void initFile(String id) throws FormatException, IOException { 
     98  protected void initFile(String id) throws FormatException, IOException { 
    9799    if (debug) debug("ImageIOReader.initFile(" + id + ")"); 
    98100    super.initFile(id); 
     
    116118 
    117119    // populate the metadata store 
    118  
    119120    MetadataStore store = getMetadataStore(); 
    120  
    121121    store.setPixels( 
    122122      new Integer(core.sizeX[0]), 
     
    133133      store.setLogicalChannel(i, null, null, null, null, null, null, null); 
    134134    } 
    135     setMetadataStore(store); 
    136135  } 
    137136 
  • trunk/loci/formats/readers.txt

    r2539 r2595  
    2828loci.formats.in.PNGReader          # png [javax.imageio] 
    2929loci.formats.in.JPEGReader         # jpg, jpeg [javax.imageio] 
     30 
     31# ImageJ readers 
     32loci.formats.in.PGMReader          # pgm [ImageJ] 
     33loci.formats.in.FitsReader         # fits [ImageJ] 
    3034 
    3135# standalone readers with unique file extensions 
Note: See TracChangeset for help on using the changeset viewer.