Changeset 2348


Ignore:
Timestamp:
02/26/07 14:22:47 (13 years ago)
Author:
curtis
Message:

Show middle thumbnail instead of first thumbnail;
display ImageJ status messages indicating thumbnails are being loaded.

File:
1 edited

Legend:

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

    r2327 r2348  
    426426        ImageReader ir = new ImageReader(); 
    427427        for (int i=0; i<seriesCount; i++) { 
     428          IJ.showStatus("Reading thumbnail for series #" + i); 
    428429          gd.addCheckbox(seriesStrings[i], series[i]); 
    429430          ir.setSeries(id, i); 
    430           BufferedImage thumb = ir.openThumbImage(id, 0); 
     431          // open middle image thumbnail 
     432          int z = ir.getSizeZ(id) / 2; 
     433          int c = 0; 
     434          int t = ir.getSizeT(id) / 2; 
     435          int ndx = ir.getIndex(id, z, c, t); 
     436          BufferedImage thumb = ir.openThumbImage(id, ndx); 
    431437          Panel p = new Panel(); 
    432438          ImageCanvas ic = new ImageCanvas(new ImagePlus("", thumb)); 
     
    438444          gd.add(p); 
    439445        } 
     446        IJ.showStatus(""); 
    440447        ir.close(); 
    441448        ir = null; 
Note: See TracChangeset for help on using the changeset viewer.