Changeset 7250 for trunk


Ignore:
Timestamp:
11/25/10 14:32:34 (10 years ago)
Author:
curtis
Message:

Better parsing of ValidBitCounts.

File:
1 edited

Legend:

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

    r7249 r7250  
    127127 
    128128  private String pixelSizeX, pixelSizeY; 
     129  private int validBits; 
    129130  private Vector<String> illuminations; 
    130131  private Vector<Integer> wavelengths; 
     
    305306      imageDepth = 0; 
    306307      pixelSizeX = pixelSizeY = null; 
     308      validBits = 0; 
    307309      pinholeSize = null; 
    308310      magnification = lensNA = objectiveName = workingDistance = null; 
     
    448450    pixelSizeX = referenceParams.get("WidthConvertValue"); 
    449451    pixelSizeY = referenceParams.get("HeightConvertValue"); 
     452    String ripValidBitCounts = referenceParams.get("ValidBitCounts"); 
     453    if (ripValidBitCounts != null) { 
     454      validBits = Integer.parseInt(ripValidBitCounts); 
     455    } 
    450456 
    451457    int index = 0; 
     
    627633        } 
    628634      } 
     635      core[0].bitsPerPixel = validBits; 
    629636 
    630637      IniTable acquisition = pty.getTable("Acquisition Parameters Common"); 
Note: See TracChangeset for help on using the changeset viewer.