Changeset 3828


Ignore:
Timestamp:
03/17/08 10:57:28 (12 years ago)
Author:
melissa
Message:

Don't fail if recorded pixel type is int16 and BufferedImage pixel type is uint16.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/tests/testng/FormatReaderTest.java

    r3826 r3828  
    136136          int actualType = ImageTools.getPixelType(b); 
    137137          boolean passType = type == actualType; 
     138          if (!passType && actualType == FormatTools.UINT16 && 
     139            type == FormatTools.INT16) 
     140          { 
     141            passType = true; 
     142          } 
     143 
    138144          if (!passType) msg = "type: was " + actualType + ", expected " + type; 
    139145 
     
    228234        int actualType = ImageTools.getPixelType(b); 
    229235        boolean passType = type == actualType; 
     236        if (!passType && actualType == FormatTools.UINT16 && 
     237          type == FormatTools.INT16) 
     238        { 
     239          passType = true; 
     240        } 
     241 
    230242        if (!passType) { 
    231243          msg = "series #" + i + ": type: was " + 
Note: See TracChangeset for help on using the changeset viewer.