Changeset 4208


Ignore:
Timestamp:
07/18/08 10:03:31 (12 years ago)
Author:
melissa
Message:

Reverted to opening planes using TiffTools, rather than using MinimalTiffReader.

File:
1 edited

Legend:

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

    r4205 r4208  
    144144 
    145145    int[] coords = getZCTCoords(no); 
    146     /* debug */ System.out.println("mapping channel " + coords[1] + " to " + 
    147       channelIndexes[coords[1]]); 
    148146    coords[1] = channelIndexes[coords[1]]; 
    149147    lastChannel = coords[1]; 
     
    153151      coords[1], coords[2]); 
    154152 
    155     MinimalTiffReader reader = new MinimalTiffReader(); 
    156     if (series == 0) reader.setId((String) tiffs.get(planeNum)); 
    157     else reader.setId((String) previewNames.get(planeNum)); 
    158  
    159     reader.openBytes(0, buf, x, y, w, h); 
    160     reader.close(); 
     153    String file = 
     154      (String) (series == 0 ? tiffs.get(planeNum) : previewNames.get(planeNum)); 
     155    RandomAccessStream plane = getFile(file); 
     156    TiffTools.getSamples(TiffTools.getFirstIFD(plane), plane, buf, x, y, w, h); 
     157    plane.close(); 
     158    plane = null; 
    161159    return buf; 
    162160  } 
Note: See TracChangeset for help on using the changeset viewer.