Changeset 4304


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

Fixed off-by-1 in BFVirtualStack - ImageJ indexes planes from 1, where Bio-Formats indexes from 0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/plugins/BFVirtualStack.java

    r4291 r4304  
    9898  public synchronized ImageProcessor getProcessor(int n) { 
    9999    // check cache first 
    100     int[] pos = reader.getZCTCoords(n); 
     100    int[] pos = reader.getZCTCoords(n - 1); 
    101101    try { 
    102102      ImageProcessor ip = (ImageProcessor) cache.getObject(pos); 
     
    110110    try { 
    111111      // CTR TODO - fix this 
    112       return Util.openProcessors(reader, n)[0]; 
     112      return Util.openProcessors(reader, n - 1)[0]; 
    113113//      int index = FormatTools.getReorderedIndex(reader, stackOrder, n - 1); 
    114114//      if (merge <= 1) return Util.openProcessor(reader, index); 
Note: See TracChangeset for help on using the changeset viewer.