Changeset 1283


Ignore:
Timestamp:
08/17/06 09:35:26 (14 years ago)
Author:
callan
Message:

Added Plane2D functionality to aid in the calculation of min/max values within format readers.

Location:
trunk/loci/formats/in
Files:
1 added
2 edited

Legend:

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

    r1282 r1283  
    2727import java.awt.image.BufferedImage; 
    2828import java.io.IOException; 
     29import java.nio.ByteBuffer; 
    2930import java.util.Hashtable; 
    3031import loci.formats.*; 
     
    537538  { 
    538539    return "XYCZT"; 
     540  } 
     541 
     542  /** 
     543   * Obtains an object which represents a given plane within the file. 
     544   * @param id The path to the file. 
     545   * @param no The plane or section within the file to obtain. 
     546   * @return an object which represents the plane. 
     547   * @throws FormatException if there is an error parsing the file. 
     548   * @throws IOException if there is an error reading from the file or acquiring 
     549   * permissions to read the file.. 
     550   */ 
     551  public Plane2D openPlane2D(String id, int no) 
     552    throws FormatException, IOException 
     553  { 
     554    return new Plane2D( 
     555        ByteBuffer.wrap(openBytes(id, no)), 
     556        Plane2D.typeFromString(getPixelType()), 
     557        isLittleEndian(id)); 
    539558  } 
    540559 
  • trunk/loci/formats/in/MetamorphReader.java

    r1282 r1283  
    124124 
    125125  // -- Internal BaseTiffReader API methods -- 
    126  
     126   
    127127  /** Populates the metadata hashtable. */ 
    128128  protected void initStandardMetadata() { 
Note: See TracChangeset for help on using the changeset viewer.