Changeset 4198


Ignore:
Timestamp:
07/14/08 12:29:49 (12 years ago)
Author:
melissa
Message:
  • Fixed FV1000 physical size Z calculation (stored in nm, not microns)
  • Fixed ImageJ window titles for multi-file datasets.
Location:
trunk/loci
Files:
2 edited

Legend:

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

    r4179 r4198  
    653653      else if (code[i].equals("Z")) { 
    654654        core.sizeZ[0] = ss; 
    655         store.setDimensionsPhysicalSizeZ(pixel, 0, 0); 
     655        // Z size stored in nm 
     656        store.setDimensionsPhysicalSizeZ(new Float(pixel.floatValue() * 0.001), 
     657          0, 0); 
    656658      } 
    657659      else if (code[i].equals("T")) { 
  • trunk/loci/plugins/Importer.java

    r4108 r4198  
    621621  { 
    622622    if (stack == null) return; 
    623     ImagePlus imp = new ImagePlus(getTitle(r, file, series), stack); 
     623    ImagePlus imp = new ImagePlus(getTitle(r, file, series, 
     624      options.isGroupFiles()), stack); 
    624625    imp.setProperty("Info", metadata); 
    625626 
     
    762763 
    763764  /** Get an appropriate stack title, given the file name. */ 
    764   private String getTitle(IFormatReader r, String file, String series) { 
     765  private String getTitle(IFormatReader r, String file, String series, 
     766    boolean groupFiles) 
     767  { 
    765768    String[] used = r.getUsedFiles(); 
    766769    String title = file.substring(file.lastIndexOf(File.separator) + 1); 
    767     if (used.length > 1) { 
     770    if (used.length > 1 && groupFiles) { 
    768771      FilePattern fp = new FilePattern(new Location(file)); 
    769772      if (fp != null) { 
Note: See TracChangeset for help on using the changeset viewer.