Changeset 3282


Ignore:
Timestamp:
10/17/07 08:37:19 (12 years ago)
Author:
melissa
Message:

Fixed case logic for setting pixel scale value.

File:
1 edited

Legend:

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

    r3281 r3282  
    272272          addInfo(tag, ss); 
    273273          break; 
     274        case RESCALE_INTERCEPT: 
     275          String intercept = in.readString(elementLength); 
     276          if (intercept != null && !intercept.trim().equals("")) { 
     277            try { scale = (int) Float.parseFloat(intercept.trim()); } 
     278            catch (NumberFormatException exc) { 
     279              scale = 0; 
     280            } 
     281          } 
     282          addInfo(tag, intercept); 
     283          break; 
    274284        case 537262910: 
    275285        case WINDOW_CENTER: 
    276286        case WINDOW_WIDTH: 
    277         case RESCALE_INTERCEPT: 
    278           String intercept = in.readString(elementLength); 
    279           scale = Integer.parseInt(intercept.trim()); 
    280           addInfo(tag, intercept); 
    281           break; 
    282287        case RESCALE_SLOPE: 
    283288          addInfo(tag, in.readString(elementLength)); 
     
    344349    core.metadataComplete[0] = true; 
    345350    core.falseColor[0] = false; 
     351    if (isJPEG || isRLE) core.interleaved[0] = false; 
    346352 
    347353    // The metadata store we're working with. 
Note: See TracChangeset for help on using the changeset viewer.