Changeset 3034


Ignore:
Timestamp:
08/02/07 12:15:52 (13 years ago)
Author:
melissa
Message:

Fixed bug with Fluoview files that have sizeY == 1.

File:
1 edited

Legend:

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

    r3022 r3034  
    131131    } 
    132132 
    133     byte[] b = super.openBytes(0); 
     133    byte[] b = new byte[core.sizeX[0] *  
     134      (int) TiffTools.getImageLength(ifds[0]) *  
     135      getRGBChannelCount() * FormatTools.getBytesPerPixel(core.pixelType[0])]; 
     136    super.openBytes(0, b); 
    134137    System.arraycopy(b, 0, buf, 0, buf.length); 
    135138    return buf; 
     
    277280 
    278281      if (name.equals("x")) { 
    279         core.sizeX[0] = size; 
     282        if (core.sizeX[0] == 0) core.sizeX[0] = size; 
    280283        voxelX = voxel; 
    281284      } 
Note: See TracChangeset for help on using the changeset viewer.