Changeset 1417


Ignore:
Timestamp:
09/06/06 10:22:43 (14 years ago)
Author:
melissa
Message:

bugfixes in FileStitcher

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/FileStitcher.java

    r1388 r1417  
    155155  /** Determines the number of images in the given file. */ 
    156156  public int getImageCount(String id) throws FormatException, IOException { 
    157     initFile(id); 
     157    if (!id.equals(currentId)) initFile(id); 
    158158    return numImages; 
    159159  } 
     
    166166  /** Get the size of the X dimension. */ 
    167167  public int getSizeX(String id) throws FormatException, IOException { 
    168     initFile(id); 
     168    if (!id.equals(currentId)) initFile(id); 
    169169    return dimensions[0]; 
    170170  } 
     
    172172  /** Get the size of the Y dimension. */ 
    173173  public int getSizeY(String id) throws FormatException, IOException { 
    174     initFile(id); 
     174    if (!id.equals(currentId)) initFile(id); 
    175175    return dimensions[1]; 
    176176  } 
     
    178178  /** Get the size of the Z dimension. */ 
    179179  public int getSizeZ(String id) throws FormatException, IOException { 
    180     initFile(id); 
     180    if (!id.equals(currentId)) initFile(id); 
    181181    return dimensions[2]; 
    182182  } 
     
    184184  /** Get the size of the C dimension. */ 
    185185  public int getSizeC(String id) throws FormatException, IOException { 
    186     initFile(id); 
     186    if (!id.equals(currentId)) initFile(id); 
    187187    return dimensions[3]; 
    188188  } 
     
    190190  /** Get the size of the T dimension. */ 
    191191  public int getSizeT(String id) throws FormatException, IOException { 
    192     initFile(id); 
     192    if (!id.equals(currentId)) initFile(id); 
    193193    return dimensions[4]; 
    194194  } 
Note: See TracChangeset for help on using the changeset viewer.