Changeset 6720


Ignore:
Timestamp:
07/21/10 11:32:09 (9 years ago)
Author:
melissa
Message:

Populate physical pixel sizes, if present. Closes #515.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/in/ScanrReader.java

    r6655 r6720  
    7373    new Hashtable<String, Integer>(); 
    7474  private String plateName; 
     75  private Double pixelSize; 
    7576 
    7677  private String[] tiffs; 
     
    170171      wellLabels.clear(); 
    171172      wellCount = 0; 
     173      pixelSize = null; 
    172174    } 
    173175  } 
     
    454456          store.setChannelName(channelNames.get(c), i, c); 
    455457        } 
     458        if (pixelSize != null) { 
     459          store.setPixelsPhysicalSizeX(pixelSize, i); 
     460          store.setPixelsPhysicalSizeY(pixelSize, i); 
     461        } 
    456462      } 
    457463 
     
    521527          } 
    522528        } 
     529        else if (key.equals("conversion factor um/pixel")) { 
     530          pixelSize = new Double(value); 
     531        } 
    523532      } 
    524533    } 
Note: See TracChangeset for help on using the changeset viewer.