Changeset 3485


Ignore:
Timestamp:
12/17/07 16:01:24 (12 years ago)
Author:
melissa
Message:

Call setNormalized(true) so floating point data is handled correctly; take value of isIndexed() into account when checking plane dimensions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/test/ReaderTest.java

    r3457 r3485  
    147147        int x = reader.getSizeX(); 
    148148        int y = reader.getSizeY(); 
    149         int c = reader.getRGBChannelCount(); 
     149        int c = reader.isIndexed() ? 1 : reader.getRGBChannelCount(); 
    150150        int bytes = FormatTools.getBytesPerPixel(reader.getPixelType()); 
    151151 
     
    182182    try { 
    183183      FileStitcher reader = new FileStitcher(); 
     184      reader.setNormalized(true); 
    184185      reader.setId(file); 
    185186 
     
    229230      boolean success = true; 
    230231      FileStitcher reader = new FileStitcher(); 
     232      reader.setNormalized(true); 
    231233      reader.setId(file); 
    232234      for (int i=0; i<reader.getSeriesCount(); i++) { 
     
    234236        int x = reader.getThumbSizeX(); 
    235237        int y = reader.getThumbSizeY(); 
    236         int c = reader.getRGBChannelCount(); 
     238        int c = reader.isIndexed() ? 1 : reader.getRGBChannelCount(); 
    237239        int bytes = FormatTools.getBytesPerPixel(reader.getPixelType()); 
    238240 
Note: See TracChangeset for help on using the changeset viewer.