Changeset 3059


Ignore:
Timestamp:
08/08/07 08:55:07 (12 years ago)
Author:
melissa
Message:

Removed plane flipping logic.

File:
1 edited

Legend:

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

    r3023 r3059  
    150150    else System.arraycopy(data, offset, buf, 0, len); 
    151151 
    152     // if it's version two, we need to flip the plane upside down 
    153     if (versionTwo) { 
    154       int scanline = core.sizeX[0] * bpp * core.sizeC[0]; 
    155       for (int y=0; y<core.sizeY[0]; y++) { 
    156         for (int x=0; x<scanline; x++) { 
    157           byte bottom = buf[y*scanline + x]; 
    158           buf[y*scanline + x] = buf[(core.sizeY[0] - y - 1)*scanline + x]; 
    159           buf[(core.sizeY[0] - y - 1)*scanline + x] = bottom; 
    160         } 
    161       } 
    162     } 
    163152    return buf; 
    164153  } 
     
    415404    MetadataStore store = getMetadataStore(); 
    416405 
    417     store.setImage((String) getMeta("filename"), null, null, null); 
     406    String fname = (String) getMeta("filename"); 
     407    if (fname == null) fname = currentId; 
     408    store.setImage(fname, null, null, null); 
    418409 
    419410    // populate Pixels element 
Note: See TracChangeset for help on using the changeset viewer.