Changeset 3972


Ignore:
Timestamp:
04/24/08 08:00:36 (12 years ago)
Author:
melissa
Message:

Set physical X and Y sizes.

File:
1 edited

Legend:

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

    r3952 r3972  
    116116    poi = new POITools(Location.getMappedId(currentId)); 
    117117 
     118    float scaleFactor = 1f; 
     119 
    118120    Vector allFiles = poi.getDocumentList(); 
    119121 
     
    143145            String value = token.substring(idx + 1).trim(); 
    144146            addMeta(key, value); 
     147 
     148            if (key.equals("factor")) { 
     149              if (value.indexOf(";") != -1) { 
     150                value = value.substring(0, value.indexOf(";")); 
     151              } 
     152              scaleFactor = Float.parseFloat(value.trim()); 
     153            } 
    145154          } 
    146155        } 
     
    216225      DataTools.convertDate(System.currentTimeMillis(), DataTools.UNIX), 0); 
    217226    MetadataTools.populatePixels(store, this); 
     227    store.setDimensionsPhysicalSizeX(new Float(scaleFactor), 0, 0); 
     228    store.setDimensionsPhysicalSizeY(new Float(scaleFactor), 0, 0); 
    218229  } 
    219230 
Note: See TracChangeset for help on using the changeset viewer.