Changeset 6958


Ignore:
Timestamp:
09/20/10 10:53:31 (9 years ago)
Author:
melissa
Message:

Fixed error in plane index calculation.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/components/bio-formats/src/loci/formats/in/CellWorxReader.java

    r6910 r6958  
    115115  { 
    116116    FormatTools.checkPlaneParameters(this, no, buf.length, x, y, w, h); 
    117     int planeSize = FormatTools.getPlaneSize(this); 
    118     int fieldSize = getImageCount() * planeSize; 
    119117    int fieldIndex = getSeries() % fieldCount; 
    120118 
     
    122120    DeltavisionReader pnl = new DeltavisionReader(); 
    123121    pnl.setId(file); 
    124     pnl.openBytes(fieldIndex * fieldCount + no, buf, x, y, w, h); 
     122    pnl.openBytes(fieldIndex * getImageCount() + no, buf, x, y, w, h); 
    125123    pnl.close(); 
    126124    return buf; 
  • trunk/components/bio-formats/src/loci/formats/in/CellWorxReader.java

    r6881 r6958  
    115115  { 
    116116    FormatTools.checkPlaneParameters(this, no, buf.length, x, y, w, h); 
    117     int planeSize = FormatTools.getPlaneSize(this); 
    118     int fieldSize = getImageCount() * planeSize; 
    119117    int fieldIndex = getSeries() % fieldCount; 
    120118 
     
    122120    DeltavisionReader pnl = new DeltavisionReader(); 
    123121    pnl.setId(file); 
    124     pnl.openBytes(fieldIndex * fieldCount + no, buf, x, y, w, h); 
     122    pnl.openBytes(fieldIndex * getImageCount() + no, buf, x, y, w, h); 
    125123    pnl.close(); 
    126124    return buf; 
Note: See TracChangeset for help on using the changeset viewer.